tjheldna Posted December 19, 2015 Share Posted December 19, 2015 Is there an easy way to make the water less transparent? I'm probably looking at modifying the shader right? Cheers Quote Link to comment Share on other sites More sharing options...
shadmar Posted December 20, 2015 Share Posted December 20, 2015 Adjusting this one to a lesser vaule should remedy that in water.shader #define SHALLOWRANGE 0.1 1 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
macklebee Posted December 20, 2015 Share Posted December 20, 2015 I see no difference when adjusting that define value, but if I change the code after it from: #define SHALLOWRANGE 0.1 if (z>SHALLOWRANGE) { float depthmix = min(1.0,(z-SHALLOWRANGE)/(10.0-SHALLOWRANGE)); to this: #define SHALLOWRANGE 0.1 if (z>SHALLOWRANGE) { float depthmix = min(1.0,(z-SHALLOWRANGE)/(3.0-SHALLOWRANGE)); then it appears to affect the transparency. A value of 1.0 will make it basically opaque. 3 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
tjheldna Posted December 21, 2015 Author Share Posted December 21, 2015 Thanks guys yeah the SHALLOWRANGE only effects the edges which I need too. I'll take another look with your suggestion Macklebee. Quote 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.