- Home /
Color of fog overrides Line Renderer material
Hi everyone, I am using a Linear Fog effect in my application to better understand distance between near and far objects. I have set start dist of fog to 10 and end dist to 300 meters. On play, the fog applies itself on top of all gameobjects on scene with fog density increasing with distance, which is what I wanted. Fog effect works well except for the gameobject with Line Renderer Component attached to it - The Line Renderer material gets overridden by fog color irrespective of start and end distance on fog settings. Could not find a similar issue on the forum, so asking someone to point me in the right direction. Any ideas? Thanks in advance.
Answer by Kennai · Jul 03, 2019 at 07:36 AM
Hi, @dinesh_unity! I suppose, its Line Renderer shader issue. What shader do you use on Line Renderer material? Create new material and add shader Legacy Shader/Particles/Additive, it should help!
Your answer