ent_fixnormals(entity,frame)

Recalculates the normal vectors for the given model or terrain entity and frame number. Necessary to achieve correct gouraud shading after having modified the frame mesh by displacing vertices.

Parameters:

entity - name or pointer of entity
frame - frame number for recalculating normals.

Speed:

Slow

Example:

ent_fixnormals(my,my.frame);

See also:

vec_for_mesh, vec_to_mesh