Project

General

Profile

« Previous | Next » 

Revision 667884b0

Added by Leszek Koltunski almost 4 years ago

Speedup for preapply

View differences:

src/main/res/raw/main_vertex_shader.glsl
107 107
#endif
108 108
   
109 109
  v_Position      = v;
110
  v_endPosition   = v + n;
110

  
111
#ifdef PREAPPLY
112
  v_endPosition   = n;
113
#else
114
  v_endPosition   = v + 0.5*n;
115
#endif
116

  
111 117
  v_TexCoordinate = a_TexCoordinate;
112 118
  v_Normal        = normalize(vec3(u_MVMatrix*vec4(n,0.0)));
113 119
  gl_Position     = u_MVPMatrix*vec4(v,1.0);

Also available in: Unified diff