0675bff71f2a85046e430cb7e1e9b3c3dcfcebb9
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / scene_standard.fs
1 uniform sampler2D uTexGarbage;
2 uniform sampler2D uTexMain;
3 uniform vec3 uCamera;
4 uniform vec4 uPlane;
5 uniform vec3 uBoard0;
6 uniform vec3 uBoard1;
7
8 in vec2 aUv;
9 in vec4 aNorm;
10 in vec3 aCo;
11 in vec3 aWorldCo;
12 flat in ivec4 aLights;
13
14 #include "common_scene.glsl"
15 #include "motion_vectors_fs.glsl"
16
17 void main()
18 {
19 compute_motion_vectors();
20
21 vec3 vfrag = vec3(0.5,0.5,0.5);
22 vec4 vsamplemain = texture( uTexMain, aUv );
23 vec3 qnorm = aNorm.xyz;
24
25 vfrag = vsamplemain.rgb;
26
27 if( g_light_preview == 1 )
28 {
29 vfrag = vec3(0.5);
30 }
31
32 vfrag = scene_do_lighting( vfrag, qnorm );
33 oColour = vec4( vfrag, 1.0 );
34 }