Ability to customize material per Sprite/SpriteManager?


Is there a way to customize the materials per Sprite/SpriteManager? I see SpriteMap._material or BABYLON.Effect.ShadersStore[spriteShader ] (which based on my understanding it will affect all sprite types in the application) are being used but I don’t know if it is the best options


The easiest way is indeed to update the shader found in BABYLON.Effect.ShadersStore["spritesPixelShader"].

It’s currently not possible to use a different shader on a per-sprite/per-manager basis.

1 Like