Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.15 KB

README.md

File metadata and controls

23 lines (16 loc) · 1.15 KB

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