Salta ai contenuti
Seleziona lingua:Italiano
Questa pagina è disponibile solo in inglese.

AuRea 1.0.2

class AuPbrObject(mesh: AuMesh, albedo: AuTexture, roughness: AuTexture, trans: Mat4f) : AuObject

Represents an object in the 3D scene rendered as Physically Based Rendering (PBR).

Constructors

constructor(mesh: AuMesh, albedo: AuTexture, roughness: AuTexture, trans: Mat4f)

Inherited properties

The handle to the native resource.

var transformation: Mat4f

The transformation matrix of the entity.

Whether or not this entity is visible.

Inherited functions

fun add(animation: AuAnimation)

Adds the specified animation to this entity.

open override fun close()

Release the native resources.

Disables hit detection for this entity.

fun enableHit(id: Long, bounds: FloatArray)

Enables hit detection for this entity.

fun remove(animation: AuAnimation)

Removes the specified animation from this entity.

Removes all animations currently attached to this entity.

Removes the most recently added animation from this entity.

fun setMesh(mesh: AuMesh)

Sets a new mesh for the object.

fun setOcclusion(value: Boolean)

Sets if this object is occluded by real object.