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.
精彩评论