Skip to content

The Entities Graphics package provides systems and components for drawing meshes using DOTS, including support for instanced mesh rendering and LOD. 📦 [Mirrored from UPM, not affiliated with Unity Technologies.]

License

Notifications You must be signed in to change notification settings

Rukhanka/com.unity.entities.graphics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Entities Graphics Skinned Mesh Renderer Optimization

This repository contains optimizations described in https://blog.rukhanka.com/optimizing-smr.

How to use

  1. Clone this repository into Packages folder of your project.

  2. Remove original Entities.Graphics entry from manifest.json

  3. Make changes to the animation-aware shader graph:

    • Create "Custom Function" shader graph node.
    • Configure the node with the following properties:

    image

    • Connect vertex data input ports with object space vertex position/normal/tangent properties.
    • Provide vertexID node with appropriate data.
    • Connect output ports with corresponding inputs of the master vertex node.
    • Create "_ComputeMeshIndex" property with "HybridPerInstance" declaration:

    image

    The final shader should look like this:

    image

About

The Entities Graphics package provides systems and components for drawing meshes using DOTS, including support for instanced mesh rendering and LOD. 📦 [Mirrored from UPM, not affiliated with Unity Technologies.]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.2%
  • Other 0.8%