X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_font.fs;h=366e120115a448eebd9f4bcfcfc42d51d3aa5330;hb=7b4f1548e85202dd34e4f849e56e042d73dbb6f2;hp=03d6b20c59a067998bec9361a861843a513f17d4;hpb=c16f95624c142beec1572baa24f262e8a661f3fb;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_font.fs b/shaders/scene_font.fs index 03d6b20..366e120 100644 --- a/shaders/scene_font.fs +++ b/shaders/scene_font.fs @@ -5,6 +5,7 @@ uniform float uTime; uniform float uOpacity; uniform float uColourize; +#include "light_clearskies_stddef.glsl" #include "common_scene.glsl" #include "motion_vectors_fs.glsl" @@ -18,7 +19,6 @@ vec3 pal( float t ){ void main(){ compute_motion_vectors(); - vec3 vfrag = vec3(0.5,0.5,0.5); vec3 qnorm = aNorm.xyz; @@ -34,7 +34,7 @@ void main(){ vec4 v1 = step( vec4(0.5), fract(vec4(a) + spread1) ); float d = ( v0.x+v0.y+v0.z+v0.w + - v1.x+v1.y+v1.z+v1.w ) * 0.125f; + v1.x+v1.y+v1.z+v1.w ) * 0.125; float dither = fract(dot(vec2(171.0,231.0),gl_FragCoord.xy)/71.0); float x = d*0.8+length(p)*0.3;