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;
 
Public procedure SetVector(const Value: array of TVector3); overload;
 
Public procedure SetVector(const Value: TVector3List); overload;
 
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.