开发者

HLSL: predefined variables

开发者 https://www.devze.com 2023-02-18 01:57 出处:网络
does HLSL have predefined variables for common matrices like GLSL has? i am looking for gl_Proje开发者_JAVA技巧ctionMatrix and gl_ModelViewMatrix respectively?

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

精彩评论

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