Model loading · function

cornerNormals

The normal every corner is shaded with, three floats per corner, in the mesh's own space.

Explained in Importing models.

function cornerNormals(mesh: BlendMeshData, splitAngle?: number | null): Float32Array
import { cornerNormals } from '@driftengine/assets';

Parameters

ParameterTypeDescription
meshBlendMeshData
splitAngle?number | null

In depth

splitAngle also tags as sharp every edge whose faces meet at more than it: a pre-4.1 file's auto smooth by default, or the angle of a Smooth by Angle modifier, which does the same thing.