From 7fc25c7fbedb213be9470e4848e02e470be97fde Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Sun, 7 Aug 2016 07:47:08 +0300 Subject: [PATCH] light direction from almost straight up is better for the chrome letter bevels --- sdr/dfont.p.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdr/dfont.p.glsl b/sdr/dfont.p.glsl index cf60f27..0d4ef4d 100644 --- a/sdr/dfont.p.glsl +++ b/sdr/dfont.p.glsl @@ -37,7 +37,7 @@ void main() vec3 color = mix(color_low, color_high, step(0.5, t)); // --- bevel gradients --- - float bv_shade = mod(1.0 * dot(grad, normalize(vec2(1.0, 1.0))) * 0.5 + 0.5, 1.0); + float bv_shade = mod(1.0 * dot(grad, normalize(vec2(0.1, 1.0))) * 0.5 + 0.5, 1.0); gradcurves(1.0 - bv_shade, c_over, c_under); vec3 bv_col = vec3(c_under, c_under, c_over); -- 1.7.10.4