osg shader 相機觀察矩陣逆矩陣 求頂點世界座標

uniform mat4 osg_ViewMatrixInverse;//osg內置uniform
void main()
{
vec4 posWorld = osg_ViewMatrixInverse*gl_ModelViewMatrix*gl_Vertex;
.....
}
相關文章
相關標籤/搜索