accommodate inspector change
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / model_entity.fs
1 uniform sampler2D uTexMain;
2 uniform vec3 uCamera;
3
4 in vec4 aColour;
5 in vec2 aUv;
6 in vec3 aNorm;
7 in vec3 aCo;
8 in vec3 aWorldCo;
9
10 #include "light_clearskies_stddef.glsl"
11 #include "common_world.glsl"
12 #include "motion_vectors_fs.glsl"
13
14 void main()
15 {
16 compute_motion_vectors();
17
18 vec3 qnorm = normalize(floor(aNorm*2.0)*0.5) + vec3(0.001,0.0,0.0);
19 vec3 diffuse = texture( uTexMain, aUv ).rgb;
20 vec3 composite = world_compute_lighting( diffuse, qnorm, aWorldCo, 1.0 );
21
22 oColour = vec4( composite, 1.0 );
23 }