mdgunn Posted July 2, 2017 Posted July 2, 2017 I downloaded the recently added workshop fog but it doesn't seem to be responding for me to changing the color or distance, which I believe are the lines below. I'm tying to set the fog to be bluer below but I see no change. Also the distance didn't seem to be having an effect. //Fog color. Use alpha for transparency uniform vec4 fogcolor = vec4(0.5,0.5,1.0,0.75); //Start and end fog range uniform vec2 fogrange = vec2(0,50); Ultimately the fog will be superceded by official packaged shader but I don't see that in my 4.4 beta and if based of this then it may need a check for similar issues. Quote
gamecreator Posted July 2, 2017 Posted July 2, 2017 Fog is controlled with camera commands: https://www.leadwerks.com/docs.php?page=API-Reference_Object_Entity_Camera 1 Quote
mdgunn Posted July 2, 2017 Author Posted July 2, 2017 Ah right. Must have missed that information, just saw that recent addition to the workshop and thought it would probably work too. Thanks for info. Quote
mdgunn Posted July 2, 2017 Author Posted July 2, 2017 Yeah the camera methods work fine. I think the workshop fog shader turns on the fog but then the camera defaults are over-riding the shader. There is a setting on the camera to use post effects but not sure this applies for fog. Quote
gamecreator Posted July 3, 2017 Posted July 3, 2017 Not sure about the workshop fog (didn't know about it until I saw this thread). I didn't download it and the fog commands still work for me. It says the workshop fog doesn't reflect on water so maybe it's faster if you don't have water? Quote
Josh Posted July 4, 2017 Posted July 4, 2017 I would use the built-in fog, which is written into the water, lighting, and other shaders. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
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.