Underwarer fog effect not working on Mobile
Hii i am doing underwater effect for mobile. Code: RenderSettings.fog = true; RenderSettings.fogColor = Camera.main.background; RenderSettings.fogDensity = 0.03; This works fine with unity editor but disappears on mobile. Plzz help
Answer by johannesahvenniemi · Aug 02, 2018 at 04:12 PM
Unity is probably stripping your fog shader code. This happens if you don't have fog enabled in any of the scenes in your build. You can either add fog to one of your scenes to avoid stripping or change Edit -> Project Settings -> Graphics -> Shader Stripping -> Fog Modes: Custom and enable the modes you need.
Your answer
Follow this Question
Related Questions
add 3d text through script on a object 1 Answer
3d text appers over everything using text mesh pro 0 Answers
How to make 3d Text invisible through 3D Game object... for a complete beginner 1 Answer
How to I make it when I reach 100 it goes back down to zero by 1 0 Answers
How to display elements of an array, using a 3D text Box? 1 Answer