pak6-patch088/glsl/Reflect_fp.glsl
raw| 1 | uniform sampler2D u_Texture0; // Diffuse |
| 2 | uniform sampler2D u_Texture1; // Normal Map |
| 3 | uniform sampler2D u_Texture2; // The reflection |
| 4 | |
| 5 | varying vec2 texture_coordinate; |
| 6 | |
| 7 | void main() |
| 8 | { |
| 9 | |
| 10 | // Sampling The Texture And Passing It To The Frame Buffer |
| 11 | gl_FragColor = texture2D(u_Texture0, texture_coordinate); |
| 12 | |
| 13 | |
| 14 | // TODO: Reflect! |
| 15 | } |