이 API는 실험적입니다
향후 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.
예제
구문
baseColorShader()
매개변수
반환값
p5.Shader: The base color shader.
Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/material.js and open a pull request!
관련 레퍼런스
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.