vertex_format_add_normal

Add surface normal data to the vertex format.

Syntax:

vertex_format_add_normal();


Returns: N/A


Description

Tell GameMaker: Studio to accept surface normal data (nx, ny and nz) as part of the new vertex format being created.


Example:

vertex_format_begin();
vertex_format_add_textcoord();
vertex_format_add_normal();
my_format = vertex_format_end();

The above code will create a new vertex format with just texture and surface normal values and then store the format id in the variable "my_format".


Back: Vertex Formats
Next: vertex_format_add_custom
© Copyright YoYo Games Ltd. 2018 All Rights Reserved