d3d_model_calculate_normals(id,smooth,invert)

From ENIGMA
Jump to navigation Jump to search

Description

Calculates normals for the vertex data in the given model.

Parameters

Parameter Data Type Description
id integer index of the model to load the vertex data into
smooth boolean whether to take the average and interpolate the normals between connected vertices
invert boolean whether the normals should be inverted

Return Values

void: This function does not return anything.

Example Call

// demonstrates generating smooth normals on a model
d3d_model_calculate_normals(mymod, true, true);