projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix some errors
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
viewchar.fs
diff --git
a/shaders/viewchar.fs
b/shaders/viewchar.fs
index f7e0370a06aeaa2c73a93d63198d166cef711968..fb98283b0d6dd080679f1074783fe9bf49d62f64 100644
(file)
--- a/
shaders/viewchar.fs
+++ b/
shaders/viewchar.fs
@@
-20,6
+20,7
@@
void main()
vec3 halfview = uCamera - aWorldCo;
float fdist = length( halfview );
halfview /= fdist;
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);
vec3 qnorm = normalize(floor(aNorm*2.0)*0.5) + vec3(0.001,0.0,0.0);
@@
-28,6
+29,6
@@
void main()
vfrag = do_light_shadowing( vfrag );
vfrag = apply_fog( vfrag, fdist );
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);
}
oColour = vec4(vfrag,opacity);
}