projects
/
vrfileman
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5b4970
)
light direction from almost straight up is better for the chrome letter bevels
author
John Tsiombikas
<nuclear@mutantstargoat.com>
Sun, 7 Aug 2016 04:47:08 +0000
(07:47 +0300)
committer
John Tsiombikas
<nuclear@mutantstargoat.com>
Sun, 7 Aug 2016 04:47:08 +0000
(07:47 +0300)
sdr/dfont.p.glsl
patch
|
blob
|
history
diff --git
a/sdr/dfont.p.glsl
b/sdr/dfont.p.glsl
index
cf60f27
..
0d4ef4d
100644
(file)
--- 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);