MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetFlameColor

Function GetFlameColor

TombEngine/Objects/Effects/flame_emitters.cpp:133–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 }
132
133 static Vector4 GetFlameColor(Vector4 sourceColor)
134 {
135 if (sourceColor == Vector4::One)
136 return Vector4(1.0f, Random::GenerateFloat(0.3f, 0.4f), 0.1f, 1.0f) * UCHAR_MAX;
137
138 return sourceColor / 2.0f * Random::GenerateFloat(0.85f, 1.0f) * UCHAR_MAX;
139 }
140
141 void FlameEmitterControl(short itemNumber)
142 {

Callers 2

FlameEmitterControlFunction · 0.85
FlameEmitter2ControlFunction · 0.85

Calls 2

GenerateFloatFunction · 0.85
Vector4Function · 0.50

Tested by

no test coverage detected