Hi all, Im trying to eliminate some of the “requires this” and “needs that” errors in my project, and I have the following notification in my quality settings: Soft Particles require using Diffuse Lighting or making camera render the depth texture. (screenshot below)
So I read up Unity’s manual and found out some particle effects and such require depth texturing on the camera to work at peak quality?
The manual says:
The Camera’s depth Texture mode can be enabled using Camera.depthTextureMode variable from script.
DepthTextureMode.Depth: a depth texture.
So Im going to create a script called DepthTexture and place DepthTextureMode.Depth in the start function (I’m guessing this is correct so far?) and attach that script to my camera, but I have 2 camera’s as I am using Cinemachine, my Main Camera and PlayerCam (screenshot below), do I attach the script to both cameras? or just the main?
Im hoping then this error will be eliminated?
There is also the manual page below about HOW to use depth textures, but if im required to use this i’m afraid it’s a little beyond me, and would need help on how to do this ![]()
Thanks for any assistance!

