Changeset 321 for trunk/tests/objload_test/obj.frag
- Timestamp:
- 08/25/14 02:43:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/objload_test/obj.frag
r139 r321 1 1 #version 120 2 2 3 uniform sampler2D diffuse;4 uniform sampler2D specular;3 uniform sampler2D nv_diffuse; 4 uniform sampler2D nv_specular; 5 5 uniform vec4 light_diffuse; 6 6 uniform vec4 light_specular; … … 23 23 float diffuse_value = max( dot( nlight_vector, nnormal ), 0.0 ); 24 24 25 vec3 diff_texel = vec3( texture2D( diffuse, v_texcoord ) );26 vec4 spec_texel = texture2D( specular, v_texcoord );25 vec3 diff_texel = vec3( texture2D( nv_diffuse, v_texcoord ) ); 26 vec4 spec_texel = texture2D( nv_specular, v_texcoord ); 27 27 28 28 float specular_amount = spec_texel.x;
Note: See TracChangeset
for help on using the changeset viewer.