b3dVertexNormal

Sets vertex normal vector (with NY negation for lighting). Takes mesh (surface-based mesh entity), surface (surface handle, 0-based), vertexIndex (vertex number, 0-based), nx/ny/nz (normal components as doubles, should form unit vector). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

mesh Int
surface Int
vertexIndex Int
nx Double
ny Double
nz Double

Returns

Void

Quick Summary

Sets vertex normal vector (with NY negation for lighting). Takes mesh (surface-based mesh entity), surface (surface handle, 0-based), vertexIndex (vertex number, 0-based), nx/ny/nz (normal components as doubles, should form unit vector). Returns nothing.

Technical Exegesis...

Sets vertex normal vector (with NY negation for lighting). Takes mesh (surface-based mesh entity), surface (surface handle, 0-based), vertexIndex (vertex number, 0-based), nx/ny/nz (normal components as doubles, should form unit vector). Returns nothing. Validates mesh exists, type is ENTITY_MESH, is surface-based, surface index valid, and vertex index valid. Sets normal: normal.x = nx, normal.y = -ny (negated), normal.z = nz. Sets surface->needsGPUUpload=true and mesh->needsGPUUpload=true.

Example

Example.bam
; No example implemented yet