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