accommodate inspector change
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / scene_standard_alphatest.fs
1 uniform sampler2D uTexGarbage;
2 uniform sampler2D uTexMain;
3 uniform vec3 uCamera;
4 uniform vec4 uPlane;
5
6 #include "light_clearskies_stddef.glsl"
7 #include "common_scene.glsl"
8 #include "motion_vectors_fs.glsl"
9
10 void main()
11 {
12 compute_motion_vectors();
13
14 vec3 vfrag = vec3(0.5,0.5,0.5);
15 vec4 vsamplemain = texture( uTexMain, aUv );
16 vec3 qnorm = aNorm.xyz;
17
18 if( vsamplemain.a < 0.15 )
19 discard;
20
21 vfrag = vsamplemain.rgb;
22
23 if( g_light_preview == 1 )
24 {
25 vfrag = vec3(0.5);
26 }
27
28 vfrag = scene_compute_lighting( vfrag, qnorm, aWorldCo );
29 oColour = vec4(vfrag, 1.0);
30 }