SkyboxVertShader.vsh 217 B

1234567891011
  1. attribute mediump vec3 inVertex;
  2. uniform mediump mat4 ModelViewProjMatrix;
  3. varying mediump vec3 vEyeDir;
  4. void main()
  5. {
  6. vEyeDir = -inVertex.xzy;
  7. gl_Position = ModelViewProjMatrix * vec4(inVertex, 1.0);
  8. }