get fak
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / viewchar.fs
index f7e0370a06aeaa2c73a93d63198d166cef711968..3c2936018f185e1afbd65ef197bb01332c9cf088 100644 (file)
@@ -1,5 +1,7 @@
 uniform sampler2D uTexMain;
 uniform vec3 uCamera;
+uniform vec3 uBoard0;
+uniform vec3 uBoard1;
 
 in vec4 aColour;
 in vec2 aUv;
@@ -20,6 +22,7 @@ void main()
    vec3 halfview = uCamera - aWorldCo;
    float fdist = length( halfview );
    halfview /= fdist;
+   fdist -= 0.08;
 
    vec3 qnorm = normalize(floor(aNorm*2.0)*0.5) + vec3(0.001,0.0,0.0);
 
@@ -28,6 +31,6 @@ void main()
    vfrag = do_light_shadowing( vfrag );
    vfrag = apply_fog( vfrag, fdist );
 
-   float opacity = clamp( fdist*fdist, 0.1, 1.0 );
+   float opacity = clamp( fdist*fdist, 0.0, 1.0 );
    oColour = vec4(vfrag,opacity);
 }