Fragment

Home

A Fragment is a render-level object that is used to store individual Trigons with their respective render data without the overhead of creating an entirely new MeshUrbject.

See also: Trigon, Material, FrameInstance, MeshUrbject

Constructors

Fragment(trigon: Trigon, material: Material, group: number): Fragment Initializes with the given attribute values.

Variables

Public Variables

trigon: Trigon A Trigon in the top-level Scene spatial domain.
material: Material The Material object used to render the Fragment.
group: number The render group that the Fragment belongs to.

Functions

Public Functions

copy(): Fragment Returns a copy of the Fragment object.

Static Functions

Fragment.copy(f: Fragment): Fragment Returns a copy of the given Fragment or a new Fragment from an object that contains all of the public attributes in the Fragment class.

Home

Copyright © 2020 Trevor Richard