I have an issue where my terrain is being culled inappropriately when used with a buffer I am constructing with the RenderWithShader functionality. The camera is created and then disabled immediately. Each frame I call this in OnPreCull:
So the camera has the same farClip as my main camera (I've debugged to confirm this). Here's a shot of the main camera's view:
And then here is a shot of the RenderWith Shader (Terrain should render completely green):
Any Thoughts? Why is the culling happening inappropriately?
asked Jan 18 '11 at 04:21 AM
your snippet is being called on the OnPreCull? the RenderWithShader function doesn't calls OnPreCull http://unity3d.com/support/documentation/ScriptReference/Camera.RenderWithShader.html so your CopyFrom is probably not being applied. Try calling it from somewhere else.
answered Jan 22 '11 at 12:57 AM
Edit: Ooops, nm I misread the question sorry
answered Jan 24 '11 at 09:47 AM