Material

Undocumented in source.
static if(ENABLE_OPENGL)
static if(BACKEND_GUI)
class Material : RefCountedObject {}

Constructors

this
this()
Undocumented in source.
this
this(EffectId effectId, string textureId, string bumpTextureId)
Undocumented in source.

Members

Functions

bind
void bind(Node3d node, Mesh mesh, LightParams* lights)
Undocumented in source. Be warned that the author may not have intended to support it.
calcAutoEffectParams
string calcAutoEffectParams(Mesh mesh, LightParams* lights)
Undocumented in source. Be warned that the author may not have intended to support it.
drawMesh
void drawMesh(Mesh mesh)
Undocumented in source. Be warned that the author may not have intended to support it.
unbind
void unbind()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

ambientColor
vec3 ambientColor [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
ambientColor
vec3 ambientColor [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
autoEffectParams
string autoEffectParams [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
bumpTexture
TextureRef bumpTexture [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
bumpTexture
TextureRef bumpTexture [@property setter]

set texture

bumpTexture
string bumpTexture [@property setter]

set texture from resourceId

diffuseColor
vec4 diffuseColor [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
diffuseColor
vec4 diffuseColor [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
effect
EffectRef effect [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
effect
EffectRef effect [@property setter]

set as effect instance

effect
EffectId effect [@property setter]

set as effect id

fogParams
FogParams fogParams [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
fogParams
FogParams fogParams [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
modulateAlpha
float modulateAlpha [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
modulateColor
vec4 modulateColor [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
modulateColor
vec4 modulateColor [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
modulateColor
float modulateColor [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
specular
float specular [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
specular
float specular [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
texture
TextureRef texture [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
texture
TextureRef texture [@property setter]

set texture

texture
string texture [@property setter]

set texture from resourceId

textureLinear
bool textureLinear [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
textureLinear
bool textureLinear [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_ambientColor
vec3 _ambientColor;
Undocumented in source.
_autoEffectId
EffectId _autoEffectId;
Undocumented in source.
_autoEffectParams
string _autoEffectParams;
Undocumented in source.
_bumpTexture
TextureRef _bumpTexture;
Undocumented in source.
_bumpTextureId
string _bumpTextureId;
Undocumented in source.
_diffuseColor
vec4 _diffuseColor;
Undocumented in source.
_effect
EffectRef _effect;
Undocumented in source.
_effectId
EffectId _effectId;
Undocumented in source.
_fogParams
FogParams _fogParams;
Undocumented in source.
_modulateAlpha
float _modulateAlpha;
Undocumented in source.
_modulateColor
vec4 _modulateColor;
Undocumented in source.
_specular
float _specular;

0 - specular is disabled, 1 .. 256 - specular exponent

_texture
TextureRef _texture;
Undocumented in source.
_textureId
string _textureId;
Undocumented in source.
_textureLinear
bool _textureLinear;
Undocumented in source.

Inherited Members

From RefCountedObject

_refCount
int _refCount;

count of references to this object from Ref

refCount
int refCount [@property getter]

returns current value of reference counter

addRef
void addRef()

increments reference counter

releaseRef
void releaseRef()

decrement reference counter, destroy object if no more references left

~this
~this()
Undocumented in source.

Meta