Project

General

Profile

« Previous | Next » 

Revision f046b159

Added by Leszek Koltunski almost 4 years ago

First attempt at the MeshBase.apply(VertexEffect) API.

View differences:

src/main/res/raw/main_vertex_shader.glsl
107 107
#endif
108 108
   
109 109
  v_Position      = v;
110
  v_endPosition   = v + 0.4*n;
110
  v_endPosition   = v + n;
111 111
  v_TexCoordinate = a_TexCoordinate;
112 112
  v_Normal        = normalize(vec3(u_MVMatrix*vec4(n,0.0)));
113 113
  gl_Position     = u_MVPMatrix*vec4(v,1.0);

Also available in: Unified diff