projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
move compiler to its own folder, api changes. wip maps
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
scene_depth.fs
diff --git
a/shaders/scene_depth.fs
b/shaders/scene_depth.fs
index 1f6f93d18b1ee894340c129daec7bcc0067de962..8850503f78a5d6a8c4523bfe4ec633c38d6581ff 100644
(file)
--- a/
shaders/scene_depth.fs
+++ b/
shaders/scene_depth.fs
@@
-17,7
+17,9
@@
float water_depth( vec3 pos, vec3 halfview )
float d = dot( pnorm, halfview );
float t = dot((pnorm*pdist - pos), pnorm) / d;
- return t * g_water_fog;
+
+ // TODO: Make g_water_fog a material param
+ return t * 0.3;//g_water_fog;
}
void main()