What kind of hlsl is this?

Started by
1 comment, last by MJP 11 years, 3 months ago
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.
Advertisement

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.

"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

My journals: dustArtemis ECS framework and Making a Terrain Generator

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.

This topic is closed to new replies.

Advertisement