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