开发者

HLSL: predefined variables

does HLSL have predefined variables for common matrices like GLSL has?

i am looking for gl_Proje开发者_JAVA技巧ctionMatrix and gl_ModelViewMatrix respectively?

thanks!


No, it doesn't unfortunatly.

You have to define them youself and send them to the shader manually from your application using shader parameters.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜