uniform mat4 osg_ViewMatrixInverse;//osg内置uniform
void main()
{
vec4 posWorld = osg_ViewMatrixInverse*gl_ModelViewMatrix*gl_Vertex;
.....
}

 

相关文章:

  • 2022-01-20
  • 2021-12-03
  • 2021-11-18
猜你喜欢
  • 2021-12-29
  • 2021-06-23
  • 2022-12-23
  • 2021-12-11
  • 2021-11-18
相关资源
相似解决方案