mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
add an ignoreLighting entry to materials
by request:, flag to utterly ignore lighting in favor of the base texture
This commit is contained in:
parent
f903140d22
commit
57037080b2
15 changed files with 78 additions and 9 deletions
|
|
@ -162,6 +162,7 @@ Material::Material()
|
|||
|
||||
mGlow[i] = false;
|
||||
mReceiveShadows[i] = true;
|
||||
mIgnoreLighting[i] = false;
|
||||
|
||||
mDetailScale[i].set(2.0f, 2.0f);
|
||||
|
||||
|
|
@ -347,6 +348,9 @@ void Material::initPersistFields()
|
|||
"The 0 to 1 rolloff factor used in the subsurface scattering approximation.");
|
||||
|
||||
addField("receiveShadows", TypeBool, Offset(mReceiveShadows, Material), MAX_STAGES,
|
||||
"Shadows being cast onto the material.");
|
||||
|
||||
addField("ignoreLighting", TypeBool, Offset(mIgnoreLighting, Material), MAX_STAGES,
|
||||
"Enables emissive lighting for the material.");
|
||||
|
||||
addField("doubleSided", TypeBool, Offset(mDoubleSided, Material),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue