ScreenTexture.vert 302 B

1234567891011121314151617
  1. precision highp float;
  2. varying vec3 ModelPos;
  3. attribute vec2 uv;
  4. attribute vec3 position;
  5. uniform mat4 view;
  6. uniform mat4 projection;
  7. uniform mat4 world;
  8. void main()
  9. {
  10. ModelPos = vec3( view * world * vec4(position , 1.0));
  11. gl_Position = projection * view * world * vec4(position , 1.0);
  12. }