开发者

uniform keyword in HLSL

it seems that in HLSL i can but dont have t开发者_JAVA技巧o provide the uniform keyword for variables which come from the application. right?

why is that so?


In HLSL global variables are considered uniform by default.

It's also settled that a variable coming out of the vertex shader stage for example is varying (HLSL doesn't need this keyword at all!).

Note that GLSL keywords uniform/varying are inherited from RSL (RenderMan shading language).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜