shadmar Posted February 1, 2015 Share Posted February 1, 2015 For the sake of controlling light on water during a day/night cycle and amplitude. Water.shader, change : vec3 sundir = vec3(0.707,-0.707,0.707); to uniform vec3 sundir = vec3(0.707,-0.707,0.707); Underwater.shader, change: float amplitude = 0.25; vec3 sundir = vec3(0.707,-0.707,0.707); to uniform float amplitude = 0.25; uniform vec3 sundir = vec3(0.707,-0.707,0.707); 2 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.