D3d_model_calculate_normals - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
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 |
outside | boolean | whether the normals should be inverted to face the inside of the model |
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);
NOTOC