Class TTangentNode

Unit

Declaration

type TTangentNode = class(TAbstractGeometricPropertyNode)

Description

Tangent vectors information, for bump mapping. The "vector" field should contain normalized tangent vectors, in right-handed coordinate system.

The ordering of the tangent vectors is exactly the same as ordering of normal vectors would be, so e.g. TAbstractComposedGeometryNode.NormalPerVertex affects the interpretation of tangent vectors as well.

Hierarchy

Overview

Methods

Public procedure CreateNode; override;
Public class function ClassX3DType: String; override;
Public procedure SetVector(const Value: array of TVector3); overload;
Public procedure SetVector(const Value: TVector3List); overload;
Public procedure SetVector4D(const List: TVector4List);

Properties

Public property FdVector: TMFVec3f read FFdVector;

Description

Methods

Public procedure CreateNode; override;

Create node fields and events.

Public class function ClassX3DType: String; override;

This item has no description. Showing description inherited from TX3DNode.ClassX3DType.

Node type name in VRML/X3D, for this class. Normal VRML/X3D node classes should override this to return something non-empty, and then X3DType automatically will return the same value.

Empty for classes that don't have a hardcoded VRML/X3D node name, like a special TX3DUnknownNode. Such special classes should override then X3DType to return actual non-empty name there.

You usually should call X3DType. The only use of this method is that it works on classes (it's "class function"), without needing at actual instance.

Public procedure SetVector(const Value: array of TVector3); overload;

This item has no description.

Public procedure SetVector(const Value: TVector3List); overload;

This item has no description.

Public procedure SetVector4D(const List: TVector4List);

Set tangent vectors from a list of 4D vectors following glTF specification. https://github.com/KhronosGroup/glTF/tree/master/specification/2.0 says "XYZW vertex tangents where the w component is a sign value (-1 or +1) indicating handedness of the tangent basis".

Properties

Public property FdVector: TMFVec3f read FFdVector;

Internal wrapper for property Vector. This wrapper API may change, we advise to access simpler Vector instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).


Generated by PasDoc 0.16.0-snapshot.