Skip to content

Missing Frustum Culling #9

@ssell

Description

@ssell

Hello, I am currently working on a 2D sprite-based game and recently went through the process of updating my implementation of a sprite renderer with frustum culling.

If you are interested in adding frustum culling to your sample, you can use my code as an example. It is based on the Unity.Rendering.MeshInstanceRenderer available in Unity Entities v0.0.12, but modified where necessary for sprite rendering.

The code is available as a public gist (as the source repository is currently private):

There are optimizations I plan on making to it (such as passing tilemap rect values as material properties and not separate batches), but hopefully it can serve as a reference you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions