Sign in to follow this  
noatom

What kind of hlsl is this?

Recommended Posts

Ok,in my book I got to shaders,the thing is,i don't really recognise them. The book uses the same language as here
http://www.fairyengine.com/articles/hlsl2sided.htm

Is that because it's using vertex shader 1.1 or what? Is it an older version of hlsl? I see that is using assembly language too!

I worked with pixel and vertex shaders.I used to put them in an effect file.Please help me with an explanation about the code in the website linked above. Edited by noatom

Share this post


Link to post
Share on other sites

That's what shaders used to be, GPU assembly.  "Modern" concept of shaders where introduced in PS/VS 1.4 I think (or 2.0, I'm not sure), that was the turning point when DX started to take over.

Edited by TheChubu

Share this post


Link to post
Share on other sites

Yeah that article is a little weird because it spends a lot of time talking about shader assembly, which is the (intermediate) format that HLSL shaders get compiled to. If you look through the whole article you can see there are parts later on where he re-implements the shaders in plain HLSL.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this