Project

General

Profile

« Previous | Next » 

Revision 62c869ad

Added by Leszek Koltunski over 3 years ago

Fix normals in case of MatrixEffectScale / Shear.
Fix displaying the normal vector.

View differences:

src/main/res/raw/normal_vertex_shader.glsl
20 20
precision lowp float;
21 21

  
22 22
in vec3 a_Position;
23
uniform mat4 u_MVPMatrix;
23
uniform mat4 u_Projection;
24 24

  
25 25
//////////////////////////////////////////////////////////////////////////////////////////////
26 26

  
27 27
void main()
28 28
  {
29
  gl_Position = u_MVPMatrix * vec4(a_Position, 1.0);
29
  gl_Position = u_Projection * vec4(a_Position, 1.0);
30 30
  }

Also available in: Unified diff