- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
Lordinarius · Jan 22, 2015 at 02:15 PM ·
cameracamera viewport
How to expand camera culling boundaries
I made a shader like subway surf. It is curving mesh among Z axis. But camera is culling objects, because normally these objects are out of viewport. Is there any way to expand this boundary or blocking culling meshes ?
ekran resmi 2015-01-22 15.54.59.png
(275.9 kB)
ekran resmi 2015-01-22 15.54.32.png
(295.7 kB)
Comment
Best Answer
Answer by Lordinarius · Jan 22, 2015 at 04:15 PM
Ok i found a solution.Just making mesh bounds bigger. It is working for me.
MeshFilter[] me;
// Use this for initialization
void Start () {
me = gameObject.GetComponentsInChildren<MeshFilter>();
for (int i = 0; i < me.Length; i++)
{
Mesh m = me[i].mesh;
m.bounds = new Bounds(m.bounds.center,m.bounds.size+Vector3.one*50);
}
Destroy(GetComponent<CullingSet>());
}
Your answer
Follow this Question
Related Questions
Camera Viewport Height - Horizontal Transition 0 Answers
UI Canvas with split Camera 0 Answers
My camera change script is not working fluently its flickering 2 Answers
How do I make the camera zoom out, relative to my players size? 2 Answers
Camera.ViewportToWorldPoint giving different values 0 Answers