Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Enlighten::PrecompInputInstance

A simple class housing the data required with each stand-alone instance of some geometry.

The position and orientation of the instance are specified by m_Location, which defaults to the identity matrix. The location should be a right-handed column-major 4x4 matrix. No particular meaning is associated with the columns, other than the fourth which is assumed to be the homogeneous position vector (x,y,z,1).

The geometry id must correspond to any valid geometry object previously associated with this scene. Valid geometry IDs must be unique across the scene. It defaults to the invalid guid and must be changed by the user.

Variables

NameDescription
float m_AdditionalUvScale

Specifies an additional scale that should be applied to the lightmap UVs for this instance (to change the output pixel size).

float m_ClusterSize

If non-negative, this specifies a per-instance cluster size, overriding the value set for the system to which this instance belongs.

Geo::GeoGuid m_GeometryId

The scene-wide unique id of the geometry this is an instance of.

Geo::s32 m_Id

The system-wide unique id of this instance (combined with the geometry material Ids when generating unique material Ids for the system)

Geo::GeoGuid m_InstanceGuid

The optional user-set GUID for this instance. If set, this must be unique within the entire scene.

Geo::Matrix m_Location

The position and orientation of the instance as a right-handed column-major 4x4 matrix.

bool m_ScaleUvsWithInstanceSize

Should the scaling of the transform of this instance be taken into account when generating the per-instance lightmap UVs (i.e.

Functions

NameDescription
PrecompInputInstance()

An instance defaults to the identity location, and no geometry id.


Anchor
a398b16c9658759f2e50779f25702a9d2
a398b16c9658759f2e50779f25702a9d2

Enlighten::PrecompInputInstance::PrecompInputInstance

...

public: PrecompInputInstance()

...

An instance defaults to the identity location, and no geometry id.