createTangentSpaceDebugPrimitive
external fun createTangentSpaceDebugPrimitive(options: CreateTangentSpaceDebugPrimitiveOptions): Primitive(source)
Creates a Primitive to visualize well-known vector vertex attributes: normal
, tangent
, and bitangent
. Normal is red; tangent is green; and bitangent is blue. If an attribute is not present, it is not drawn.
scene.primitives.add(createTangentSpaceDebugPrimitive({
geometry : instance.geometry,
length : 100000.0,
modelMatrix : instance.modelMatrix
}));
Content copied to clipboard
Return
A new Primitive
instance with geometry for the vectors.