| 1 |
#version 100 |
| 2 |
|
| 3 |
varying highp vec2 texCoord; |
| 4 |
uniform sampler2D texture; |
| 5 |
uniform highp float lightIntensity; |
| 6 |
varying highp vec3 worldPosition; |
| 7 |
uniform highp float exposure; |
| 8 |
highp vec4 lightModel(const in highp vec3 baseColor, |
| 9 |
const in highp vec3 pos, |
| 10 |
const in highp float intensity) |
| 11 |
{ |
| 12 |
... |
| 13 |
} |
| 14 |
|
| 15 |
#line 9 |
| 16 |
highp vec4 lightModel(const in highp vec3 baseColor, |
| 17 |
const in highp vec3 pos, |
| 18 |
const in highp float intensity) |
| 19 |
{ |
| 20 |
... |
| 21 |
} |
| 22 |
|
| 23 |
#line 11 |
| 24 |
|
| 25 |
void main() |
| 26 |
{ |
| 27 |
gl_fragColor = (((((lightModel(((texture2D(texture, texCoord))), worldPosition, lightIntensity)))) * pow(2.0, exposure))); |
| 28 |
} |