Changeset 161 for trunk/tests/objload_test
- Timestamp:
- 07/15/13 02:48:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/objload_test/obj.vert
r139 r161 1 1 #version 120 2 2 3 attribute vec3 position;4 attribute vec2 texcoord;5 attribute vec3 n ormal;3 attribute vec3 nv_position; 4 attribute vec2 nv_texcoord; 5 attribute vec3 nv_normal; 6 6 7 7 varying vec3 v_normal; … … 17 17 18 18 void main(void) { 19 vec4 vertex = vec4( position, 1.0 );19 vec4 vertex = vec4( nv_position, 1.0 ); 20 20 vec3 eye_pos = vec3( nv_m_modelview * vertex ); 21 v_normal = normalize( nv_m_normal * n ormal );21 v_normal = normalize( nv_m_normal * nv_normal ); 22 22 v_light_vector = vec3( normalize( light_position - eye_pos ) ); 23 23 v_view_vector = vec3( normalize( -eye_pos ) ); 24 24 25 v_texcoord = texcoord;25 v_texcoord = nv_texcoord; 26 26 gl_Position = matrix_mvp * vertex; 27 27 }
Note: See TracChangeset
for help on using the changeset viewer.