Jump to content

Recommended Posts

Posted

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.

 

Posted

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.

 

Posted

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.

Posted

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?

Posted

I would use the built-in fog, which is written into the water, lighting, and other shaders.

  • Upvote 1

My job is to make tools you love, with the features you want, and performance you can't live without.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...