Changeset 238 for trunk/tests/render_test/box.frag
- Timestamp:
- 05/16/14 05:48:01 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/render_test/box.frag
r46 r238 4 4 varying vec3 f_material; 5 5 varying float f_diffuse_value; 6 uniform sampler2D tex;6 uniform sampler2D nv_t_diffuse; 7 7 uniform vec3 light; 8 8 … … 16 16 17 17 if (secondary) 18 gl_FragColor = texture2D( tex, vec2((fract(f_coord.z - f_coord.x) + modulus ), ( fract(-f_coord.y) + remmod) ) / 16.0);18 gl_FragColor = texture2D(nv_t_diffuse, vec2((fract(f_coord.z - f_coord.x) + modulus ), ( fract(-f_coord.y) + remmod) ) / 16.0); 19 19 else 20 gl_FragColor = texture2D( tex, vec2((fract(f_coord.z) + modulus ), ( fract(f_coord.x) + remmod) ) / 16.0);20 gl_FragColor = texture2D(nv_t_diffuse, vec2((fract(f_coord.z) + modulus ), ( fract(f_coord.x) + remmod) ) / 16.0); 21 21 gl_FragColor = vec4( gl_FragColor.xyz * (f_diffuse_value + 0.4), 1.0 ); 22 22 }
Note: See TracChangeset
for help on using the changeset viewer.