projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update helpers/location to 'frosted' ui
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
scene_depth.fs
diff --git
a/shaders/scene_depth.fs
b/shaders/scene_depth.fs
index 1f6f93d18b1ee894340c129daec7bcc0067de962..d805441c70a0a1fb0d0776d0376e4104048282ed 100644
(file)
--- a/
shaders/scene_depth.fs
+++ b/
shaders/scene_depth.fs
@@
-17,6
+17,8
@@
float water_depth( vec3 pos, vec3 halfview )
float d = dot( pnorm, halfview );
float t = dot((pnorm*pdist - pos), pnorm) / d;
float d = dot( pnorm, halfview );
float t = dot((pnorm*pdist - pos), pnorm) / d;
+
+ // TODO: Make g_water_fog a material param
return t * g_water_fog;
}
return t * g_water_fog;
}