projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug invalid memory write
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
scene_water_fast.fs
diff --git
a/shaders/scene_water_fast.fs
b/shaders/scene_water_fast.fs
index 81a4b021754e6561f17403e517394cb8552288de..62672d468594e411a12a58cb275cd11920979f18 100644
(file)
--- a/
shaders/scene_water_fast.fs
+++ b/
shaders/scene_water_fast.fs
@@
-9,12
+9,6
@@
uniform vec3 uBoard1;
uniform vec3 uShoreColour;
uniform vec3 uOceanColour;
uniform vec3 uShoreColour;
uniform vec3 uOceanColour;
-in vec2 aUv;
-in vec4 aNorm;
-in vec3 aCo;
-in vec3 aWorldCo;
-flat in ivec4 aLights;
-
#include "common_scene.glsl"
#include "motion_vectors_fs.glsl"
#include "common_scene.glsl"
#include "motion_vectors_fs.glsl"
@@
-36,7
+30,7
@@
void main()
compute_motion_vectors();
// Surface colour composite
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 );
vec2 world_coord = aCo.xz * 0.008;
vec4 time_offsets = vec4( uTime ) * vec4( 0.008, 0.006, 0.003, 0.03 );