Skip to content

patchShader

patchShader(shader): string

Defined in: shaders/ShaderChunk.ts:18

Patches the given shader string by adding a condition for indirect instancing support.

Parameters

shader

string

The shader code to modify.

Returns

string

The modified shader code with the additional instancing condition.