projects
/
vrfileman
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implemented a laser pointer
[vrfileman]
/
sdr
/
grid.p.glsl
diff --git
a/sdr/grid.p.glsl
b/sdr/grid.p.glsl
index
3dc1230
..
c109a0a
100644
(file)
--- a/
sdr/grid.p.glsl
+++ b/
sdr/grid.p.glsl
@@
-6,10
+6,10
@@
varying vec3 vpos;
void main()
{
vec3 texel = texture2D(tex, gl_TexCoord[0].st).xyz;
void main()
{
vec3 texel = texture2D(tex, gl_TexCoord[0].st).xyz;
- vec3 color = pow(texel * grid_color, vec3(0.75)) * 2.0;
+ vec3 color = texel * grid_color.r * 2.0;
float dist = abs(vpos.z);
float dist = abs(vpos.z);
- float fog = 1.0 - exp(-dist * 0.11);
+ float fog = 1.0 - exp(-dist * 0.12);
float t = clamp(fog, 0.0, 1.0);
gl_FragColor.xyz = mix(color, fog_color, t);
float t = clamp(fog, 0.0, 1.0);
gl_FragColor.xyz = mix(color, fog_color, t);