Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Custom Culling / Disable Culling

Discussion in 'Graphics for ECS' started by Thygrrr, Aug 5, 2023.

  1. Thygrrr

    Thygrrr

    Joined:
    Sep 23, 2013
    Posts:
    705
    I've experimented with a camera centric rendering approach URP (correction factor added in vertex shader). Works very well. Except...

    It appears as if Hybrid Render Culling has no idea what to do with this. (understandable)

    But I run my own culling; which can make much more informed decisions than HybridRenderer's cool blanket solution - and I and would like to know how to turn off culling in HybridRenderer, or how to hook in my own.

    Can I just remove some tags? The PerInstanceCulling tag is not documented, sadly, and removing that is not enough.
     
  2. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    4,293
    If you want Entities Graphics culling to pass everything, just make the WorldRenderBounds and ChunkWorldRenderBounds of all entities very large. Otherwise you have to replace a large chunk of the Entities Graphics stack like I did.
     
    apkdev and Thygrrr like this.
  3. Thygrrr

    Thygrrr

    Joined:
    Sep 23, 2013
    Posts:
    705
    Great idea, thanks - I decided to just change the render bounds for prototyping, and just translating them as a "hint" to the culling system. Precision is sufficient.

    Oddly enough, static (LTW only) objects already work. Maybe these don't get culled?!
     
    Last edited: Aug 6, 2023