此 API 是实验性的
其行为可能在 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.
示例
语法
baseStrokeShader()
参数
返回值
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!