normal()

Lights Camera / Lights

Description

Sets the current normal vector. Used to specify the surface orientation for lighting calculations.

Syntax

void normal(float nx, float ny, float nz)

Parameters

NameTypeDescription
nxfloatx component of normal
nyfloaty component of normal
nzfloatz component of normal

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...