Sets the current material as a normal material.
A normal material sets surfaces facing the x-axis to red, those facing the y-axis to green, and those facing the z-axis to blue. Normal material isn't affected by light. It’s often used as a placeholder material when debugging.
Note: normalMaterial() can only be used in WebGL mode.
Ejemplos
This page is generated from the comments in src/webgl/material.js . Please feel free to edit it and submit a pull request!
Referencias Relacionadas
ambientMaterial
Establece el color ambiental del material de la superficie de las formas.
createFilterShader
Crea un objeto p5.Shader para ser utilizado con la función filter().
createShader
Crea un nuevo objeto p5.Shader.
emissiveMaterial
Establece el color de emisión del material de la superficie de las formas.