Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity Camera culling Objects wrong when I modify the vertex pos in shder

Discussion in 'Getting Started' started by cailuming, Mar 18, 2021.

  1. cailuming

    cailuming

    Joined:
    Jan 11, 2021
    Posts:
    1
    upload_2021-3-18_14-43-39.png
    the wire cube is where the red cube lies in, and I just add the positionWS with 15 in shader ,But as camera move forward, the red cube would be disappear suddenly while it should be visible in camera
    upload_2021-3-18_14-47-59.png
    upload_2021-3-18_14-47-41.png
    I want to know how unity cull objects in camera, does it cull objects by word transform matrix? and why not ClipSpace ,ie the positionCS? Thank you