This API is experimental
Its behavior may change in a future version of p5.js.
Returns the default shader used for strokes.
Calling buildStrokeShader(shaderFunction) is equivalent to calling baseStrokeShader().modify(shaderFunction).
Read the buildStrokeShader reference or call baseStrokeShader().inspectHooks() for more information on what you can do with the base material shader.
Ejemplos
Sintaxis
baseStrokeShader()
Parámetros
Returns
p5.Shader: The base material shader.
Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/material.js and open a pull request!
Referencias Relacionadas
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.