Instanced Animation System 1.0.2
by Black Rose Projects
Loading...
Searching...
No Matches
Creating Shader

Material with your shader need to have enabled GPU instancing. After creating proper shader via ShaderGraph or code and adding your material to InstancedAnimationData, press -Setup keyworlds- button to properly activate AniamtionInstancing.

Creating shader via code

In Built-in, to add Instancing Animation System to your custom shader you need to Inslude our .cginc and add #pragma vertex animVert

#include "Assets\BlackRoseProjects\BlackRoseTools\InstancedAnimationSystem\Shader\Built-in\AnimationInstancingCustom.cginc"
#pragma vertex animVert

In other pipelines, you need to include a lot more, so we suggest to use ShaderGraph.

ShaderGraph

To add Instancing Animation System in your shader graph, just add -Animation Instancing Sub Graph- to your Graph, and pass LocalPos from subgraf to Vertex Position.