This API is experimental
Its behavior may change in a future version of p5.js.
Returns the default shader used for fills when no lights or textures are activate.
Calling buildColorShader(shaderFunction) is equivalent to calling baseColorShader().modify(shaderFunction).
Read the buildColorShader reference or call baseColorShader().inspectHooks() for more information on what you can do with the base color shader.
Examples
Syntax
baseColorShader()
Parameters
Returns
Related References
baseColorShader
Returns the default shader used for fills when no lights or textures are activate.
baseFilterShader
Returns the base shader used for filters.
baseMaterialShader
Returns the default shader used for fills when lights or textures are used.
baseNormalShader
Returns the default shader used for fills when normalMaterial() is activated.