X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_water_fast.fs;h=e7cbc487565af8f85230e54ed9ca84d7afec2153;hb=f3a2490079baf440238b78e54f4476649eddbda2;hp=81a4b021754e6561f17403e517394cb8552288de;hpb=192990d6d24e53749ca046fef808a63cf162ab8a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_water_fast.fs b/shaders/scene_water_fast.fs index 81a4b02..e7cbc48 100644 --- a/shaders/scene_water_fast.fs +++ b/shaders/scene_water_fast.fs @@ -36,7 +36,7 @@ void main() compute_motion_vectors(); // Surface colour composite - float depthvalue = clamp( -world_depth_sample( aCo )*(1.0/25.0), 0.0, 1.0 ); + float depthvalue = clamp( -world_water_depth( aCo )*(1.0/25.0), 0.0, 1.0 ); vec2 world_coord = aCo.xz * 0.008; vec4 time_offsets = vec4( uTime ) * vec4( 0.008, 0.006, 0.003, 0.03 );