Leadwerks Game Engine

Leadwerks Game Engine

Not enough ratings
Creek Shader
   
Award
Favorite
Favorited
Unfavorite
Type: Material
File Size
Posted
59.940 KB
1 Nov, 2020 @ 1:35am
1 Change Note ( view )

Subscribe to download
Creek Shader

Description
Easy to use. Fast. Good realism. Has reflection, refraction, and fresnel. Variables added at the top of the shader so you can easily adjust the water color, creek speed, creek direction, ripple size, refraction amount, and fresnel intensity. I desaturated the skybox reflection in the water, and there's a subtle plane displacement in the vertex to give a rising and falling effect along the shoreline.

Notes:

Put the skybox texture in slot 0 on the material

Disable cast shadows on material

Enable z-sort on material

Make a box or plane and slap the material on it
1 Comments
syleox 25 Nov, 2021 @ 5:42pm 
in shader editor
replace line 84 by this one
compiler expect a float numer instead of a int

if (ndotv < clamp(smoothstep(-100.0,0.0,fresnel_intensity),0.0,1.0))