Changeset 238 for trunk/tests/render_test/char.frag
- Timestamp:
- 05/16/14 05:48:01 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/render_test/char.frag
r46 r238 2 2 varying vec3 f_coord; 3 3 varying vec3 f_material; 4 uniform sampler2D tex;4 uniform sampler2D nv_t_diffuse; 5 5 6 6 void main(void) { … … 9 9 float modulus = w - remmod * 16; 10 10 11 gl_FragColor = texture2D( tex, vec2((fract(f_coord.x) + modulus ), ( fract(f_coord.z) + remmod) ) / 16.0);11 gl_FragColor = texture2D(nv_t_diffuse, vec2((fract(f_coord.x) + modulus ), ( fract(f_coord.z) + remmod) ) / 16.0); 12 12 13 // gl_FragColor = texture2D( tex, vec2((fract(f_coord.z - f_coord.x) + modulus ), ( fract(-f_coord.y) + remmod) ) / 16.0);13 // gl_FragColor = texture2D(nv_t_diffuse, vec2((fract(f_coord.z - f_coord.x) + modulus ), ( fract(-f_coord.y) + remmod) ) / 16.0); 14 14 }
Note: See TracChangeset
for help on using the changeset viewer.