now we're doing a bunch of them
[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 #include "common_scene.glsl"
9 #include "motion_vectors_fs.glsl"
10
11 void main()
12 {
13 compute_motion_vectors();
14
15 vec3 vfrag = vec3(0.5,0.5,0.5);
16 vec4 vsamplemain = texture( uTexMain, aUv );
17 vec3 qnorm = aNorm.xyz;
18
19 vfrag = vsamplemain.rgb;
20
21 if( g_light_preview == 1 )
22 {
23 vfrag = vec3(0.5);
24 }
25
26 vfrag = scene_do_lighting( vfrag, qnorm );
27 oColour = vec4( vfrag, 1.0 );
28 }