Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Neolightl · Apr 04, 2015 at 02:24 PM · shaderunity5fog

Unity 5 Fog not working on Standard Shader Objects

Objects applied with Standard and Standard_Specular shaders ignore fog in Unity 5 for me. Has anyone else had this issue?

Note: Fog seems to work with shaderforge shaders and some others.

alt text

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image QSBen · Apr 15, 2015 at 06:28 AM 0
Share

I'm having the same issue. The only thing in my scene which is working with Fog is using the Legacy Transparent Diffuse Bump shader.

avatar image myamo · Apr 15, 2015 at 11:10 PM 0
Share

bump, same here

avatar image AlwaysSunny · Apr 15, 2015 at 11:11 PM 0
Share

Please bump and perform non-answer activities with comments. Doing otherwise reduces the chances of the question being viewed.

avatar image Cherno · Apr 16, 2015 at 06:45 AM 0
Share

There was a thread about this issue not long ago on the forums, in the shader section I think, but I can't find it right now.

avatar image Neolightl · Apr 16, 2015 at 03:03 PM 0
Share

Hi everyone, there was a work-around on my end. Try setting your rendering path to forward. Fog misbehaves when using the deferred rendering path.

This is not an answer, but a temporary solution.

Good Luck

Show more comments

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by mikelortega · May 04, 2015 at 04:14 PM

You have to use the Global Fog shader in your camera, you can find it in the Standard Assets package. Then, your scene's fog must be activated to work, more info here.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Recluse · Jun 11, 2015 at 03:56 PM 0
Share

I can't use the Global Fog post FX - adding it to my camera makes the head tracking in VR mode lag nauseatingly.

avatar image
0

Answer by Paul_Bronowski · May 05, 2015 at 03:13 AM

Thanks MikeLo. That unblocks me. Here's what I did...

  • Added 'Standard Assets\Effects\ImageEffects\Scripts\GlobalFog.cs' to my cameras.

  • Specified 'Standard Assets\Effects\ImageEffects\Shaders\GlobalFog.shader'.

  • Tweaked both the global fog settings (Lighting inspector), and the camera. Essentially, together they control the forward and deferred rendering paths WRT Fog. Bit messy, but it works.

Note: 'Assets\Standard Assets\Image Effects (Pro Only)_Sources\Shaders\GlobalFog.shader' appears to be different/stale, even after updating it.

Also, Marmoset support says, 'All transparent materials have to render in forward mode so really this means forward fog is working, new deferred fog not so much.' They are looking into it from their end.

  • again, appreciated

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Paul_Bronowski · May 04, 2015 at 05:45 PM 0
Share

This is only a post-processing workaround. $$anonymous$$armoset support just tried it and says 'it looks like in the latest build (5.0.1), all deferred fog is broken, even for the built-in Standard and Standard (Specular) shaders. $$anonymous$$armoset shaders are written as surface shaders and in theory should not require any special treatment for built-in fog to just work.

Glad to hear GlobalFog is a suitable work-around for you. I think that is implemented as a post-effect and independent of any rendering modes.'

I'm filing a bug/issue against Unity 5.0.1.

avatar image
0

Answer by turritom · Jun 20, 2015 at 05:27 PM

the problem with the Fog and defered rendering is that the fog only work on nvidia graphiccards ..i have it testet today ..on amd (ati) graphiccards it does not work with the standard shader and defered rendering.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity 5: Water Shader and Fog Not Rendering 1 Answer

Fog/color tint shader for orthographic camera 0 Answers

How to tint the specular map in Unity5 0 Answers

Unity 5 upgrade broke lightmapped shader 1 Answer

How to enable Fog in vertex bending shader? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges