projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shader vacuuming
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
scene_depth.fs
diff --git
a/shaders/scene_depth.fs
b/shaders/scene_depth.fs
index a2b7642c2df612c6285a630d360254793c1aa303..2ac60135f18e5ab04e510120483b26aa12fe5836 100644
(file)
--- a/
shaders/scene_depth.fs
+++ b/
shaders/scene_depth.fs
@@
-29,5
+29,5
@@
void main()
{
vec3 halfview = normalize( uCamera - aWorldCo );
float depth = water_depth( aWorldCo, halfview );
{
vec3 halfview = normalize( uCamera - aWorldCo );
float depth = water_depth( aWorldCo, halfview );
- FragColor = vec4(
aWorldCo.y, 0.0, 0.0,depth
);
+ FragColor = vec4(
depth, 0.0, 0.0, 0.0
);
}
}