Function: createShaderCache()
createShaderCache():
ShaderCache
Defined in: rendering/utilities/create-shader-cache.ts:37
Creates and initializes a ShaderCache instance with predefined shader includes and shaders.
The shader includes added to the ShaderCache provide reusable shader code snippets, such as cubic interpolation, Perlin noise, quintic interpolation, radial gradients, random gradients, signed distance functions (SDF) for circles, and oriented boxes.
The shaders added to the ShaderCache include fragment and vertex shaders for rendering radial gradients, Perlin noise, and sprites.
Returns
A ShaderCache instance populated with the predefined shader includes and shaders.