Revision 77fcb24d
Added by Leszek Koltunski almost 8 years ago
src/main/res/raw/main_vertex_shader.glsl | ||
---|---|---|
356 | 356 |
restrict(v.z); |
357 | 357 |
#endif |
358 | 358 |
|
359 |
v_Position = vec3(u_MVMatrix*v);
|
|
359 |
v_Position = v.xyz;
|
|
360 | 360 |
v_TexCoordinate = a_TexCoordinate; |
361 | 361 |
v_Normal = normalize(vec3(u_MVMatrix*n)); |
362 | 362 |
gl_Position = u_MVPMatrix*v; |
Also available in: Unified diff
Fix for Bug #17: Regions of Fragment Effects migrate.
Fix is: don't send vertex position and the Fragment Effect region to the fragment shader already multiplied by the ModelView matrix (that introduces the imprecise interpolation because of the projection effect) but simply send both of them in local coords.