summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/shaderbuilder/output.gl3
blob: 4c9fd106427f05a8f230ee85f472c87c74cf7a8a (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
29
#version 150 core

in vec3 worldPosition;
uniform sampler2D texture;
in vec2 texCoord;
uniform float lightIntensity;
uniform float exposure;
out vec4 fragColor;
vec4 lightModel(const in vec3 baseColor,
                const in vec3 pos,
                const in float intensity)
{
    ...
}

#line 10
vec4 lightModel(const in vec3 baseColor,
                const in vec3 pos,
                const in float intensity)
{
    ...
}

#line 12

void main()
{
    fragColor = (((((lightModel(((texture2D(texture, texCoord))), worldPosition, lightIntensity)))) * pow(2.0, exposure)));
}