Skip to content

VertexNormal

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
Blitz3D

VertexNormal

VertexNormal:Void surface:Int32, index:Int32, nx:Float32, ny:Float32, nz:Float32
Parameter Mode Type Default Description
surface In Int32 required Surface handle.
index In Int32 required Index of the vertex, from 0.
nx In Float32 required X part of the normal.
ny In Float32 required Y part of the normal.
nz In Float32 required Z part of the normal.

Description

Sets the normal of a vertex: the direction it faces, which decides how light hits it. The normal should have a length of 1. Set it yourself for hard control over shading, for example to make a flat quad look rounded. UpdateNormals overwrites all normals of a mesh.

Related Commands

VertexAlpha, VertexBlue, VertexColor, VertexCoords, VertexGreen, VertexNX, VertexNY, VertexNZ

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally