Sets the current normal vector.
Sets the current normal vector. Used for drawing three dimensional shapes and surfaces,
normal() specifies a vector perpendicular to a shape’s surface which, in turn, determines how lighting affects it. Py5 attempts to automatically assign normals to shapes, but since that’s imperfect, this is a better option when you want more control. This function is identical to
gl_normal3f() in OpenGL.
Underlying Processing method: PGraphics.normal
normal(nx: float, ny: float, nz: float, /) -> None
nx: float - x direction
ny: float - y direction
nz: float - z direction
Updated on November 12, 2021 11:30:58am UTC