Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Converter/BlenderWorldInfo.cpp
| Context not available. | |||||
| { | { | ||||
| if (blenderworld) { | if (blenderworld) { | ||||
| m_hasworld = true; | m_hasworld = true; | ||||
| m_hasmist = ((blenderworld->mode) & WO_MIST ? true : false); | |||||
| // do we have mist? | m_miststart = blenderworld->miststa; | ||||
| if ((blenderworld->mode) & WO_MIST) { | m_mistdistance = blenderworld->mistdist; | ||||
| m_hasmist = true; | copy_v3_v3(m_mistcolor, &blenderworld->horr); | ||||
| m_miststart = blenderworld->miststa; | |||||
| m_mistdistance = blenderworld->mistdist; | |||||
| copy_v3_v3(m_mistcolor, &blenderworld->horr); | |||||
| } | |||||
| else { | |||||
| m_hasmist = false; | |||||
| m_miststart = 0.0; | |||||
| m_mistdistance = 0.0; | |||||
| zero_v3(m_mistcolor); | |||||
| } | |||||
| copy_v3_v3(m_backgroundcolor, &blenderworld->horr); | copy_v3_v3(m_backgroundcolor, &blenderworld->horr); | ||||
| copy_v3_v3(m_ambientcolor, &blenderworld->ambr); | copy_v3_v3(m_ambientcolor, &blenderworld->ambr); | ||||
| Context not available. | |||||
| m_backgroundcolor[2] = b; | m_backgroundcolor[2] = b; | ||||
| } | } | ||||
| void BlenderWorldInfo::setMistEnable(bool enable) | |||||
| { | |||||
| m_hasmist = enable; | |||||
| } | |||||
| void BlenderWorldInfo::setMistStart(float d) | void BlenderWorldInfo::setMistStart(float d) | ||||
| { | { | ||||
| m_miststart = d; | m_miststart = d; | ||||
| Context not available. | |||||
| m_mistdistance = d; | m_mistdistance = d; | ||||
| } | } | ||||
| void BlenderWorldInfo::setMistColorRed(float d) | void BlenderWorldInfo::setMistColor(float r, float g, float b) | ||||
| { | |||||
| m_mistcolor[0] = d; | |||||
| } | |||||
| void BlenderWorldInfo::setMistColorGreen(float d) | |||||
| { | { | ||||
| m_mistcolor[1] = d; | m_mistcolor[0] = r; | ||||
| m_mistcolor[1] = g; | |||||
| m_mistcolor[2] = b; | |||||
| } | } | ||||
| void BlenderWorldInfo::setMistColorBlue(float d) | void BlenderWorldInfo::setAmbientColor(float r, float g, float b) | ||||
| { | { | ||||
| m_mistcolor[2] = d; | m_ambientcolor[0] = r; | ||||
| m_ambientcolor[1] = g; | |||||
| m_ambientcolor[2] = b; | |||||
| } | } | ||||
| Context not available. | |||||