Last change
on this file since 238 was
238,
checked in by epyon, 11 years ago
|
- mesh data interface and usage
- new wavefront importer (old pending removal)
- updates to test projects
|
File size:
476 bytes
|
Rev | Line | |
---|
[46] | 1 | #version 120
|
---|
| 2 | varying vec3 f_coord;
|
---|
| 3 | varying vec3 f_material;
|
---|
[238] | 4 | uniform sampler2D nv_t_diffuse;
|
---|
[46] | 5 |
|
---|
| 6 | void main(void) {
|
---|
| 7 | float w = f_material.x;
|
---|
| 8 | float remmod = floor( w / 16 + 0.5 );
|
---|
| 9 | float modulus = w - remmod * 16;
|
---|
| 10 |
|
---|
[238] | 11 | gl_FragColor = texture2D(nv_t_diffuse, vec2((fract(f_coord.x) + modulus ), ( fract(f_coord.z) + remmod) ) / 16.0);
|
---|
[46] | 12 |
|
---|
[238] | 13 | // gl_FragColor = texture2D(nv_t_diffuse, vec2((fract(f_coord.z - f_coord.x) + modulus ), ( fract(-f_coord.y) + remmod) ) / 16.0);
|
---|
[46] | 14 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.