1
0
Fork 0

Use the alpha channel of the depth map

This commit is contained in:
Erik Hofman 2021-05-09 14:26:18 +02:00
parent afd8e93ad0
commit 3ae3f95abd

View file

@ -222,7 +222,6 @@ void main(void)
// get depth map
vec4 colorTexel = texture2D(water_colormap, TopoUV);
vec4 topoTexel = texture2D(topo_map, TopoUV);
topoTexel.a = topoTexel.r;
float floorMixFactor = smoothstep(0.3, 0.985, topoTexel.a);
vec3 floorColour = colorTexel.rgb;