ExMujoco.Types.TextureRole (ExMujoco v0.2.3)

Copy Markdown View Source

mjtTextureRole — role of texture map in rendering. From MuJoCo's headers, as numbers. All 11 values carry a number in the header.

Summary

Functions

mjTEXROLE_EMISSIVE is 7 — light emission.

mjTEXROLE_METALLIC is 4 — metallic.

mjNTEXROLE is 10.

mjTEXROLE_NORMAL is 5 — normal (bump) map.

mjTEXROLE_OCCLUSION is 2 — ambient occlusion.

mjTEXROLE_OPACITY is 6 — opacity.

mjTEXROLE_ORM is 9 — occlusion, roughness, metallic.

mjTEXROLE_RGB is 1 — base color (albedo).

mjTEXROLE_RGBA is 8 — base color, opacity.

mjTEXROLE_ROUGHNESS is 3 — roughness.

The name behind an integer. An atom is already one.

The integer behind a name. An integer is already one.

mjTEXROLE_USER is 0 — unspecified.

Every value, as {name, integer}, in the order the header lists them.

Types

t()

@type t() :: integer()

Functions

emissive()

@spec emissive() :: 7

mjTEXROLE_EMISSIVE is 7 — light emission.

metallic()

@spec metallic() :: 4

mjTEXROLE_METALLIC is 4 — metallic.

mjntexrole()

@spec mjntexrole() :: 10

mjNTEXROLE is 10.

normal()

@spec normal() :: 5

mjTEXROLE_NORMAL is 5 — normal (bump) map.

occlusion()

@spec occlusion() :: 2

mjTEXROLE_OCCLUSION is 2 — ambient occlusion.

opacity()

@spec opacity() :: 6

mjTEXROLE_OPACITY is 6 — opacity.

orm()

@spec orm() :: 9

mjTEXROLE_ORM is 9 — occlusion, roughness, metallic.

rgb()

@spec rgb() :: 1

mjTEXROLE_RGB is 1 — base color (albedo).

rgba()

@spec rgba() :: 8

mjTEXROLE_RGBA is 8 — base color, opacity.

roughness()

@spec roughness() :: 3

mjTEXROLE_ROUGHNESS is 3 — roughness.

to_atom(value)

@spec to_atom(integer() | atom()) :: atom() | nil

The name behind an integer. An atom is already one.

to_integer(value)

@spec to_integer(t() | atom()) :: integer() | nil

The integer behind a name. An integer is already one.

user()

@spec user() :: 0

mjTEXROLE_USER is 0 — unspecified.

values()

@spec values() :: [{atom(), integer()}]

Every value, as {name, integer}, in the order the header lists them.