Searched refs:fogCoeficient (Results 1 – 2 of 2) sorted by relevance
139 float fogCoeficient = 0.0f; in calculateColor() local140 fog->calculateCoeficient(position, viewPosition, &fogCoeficient); in calculateColor()141 if (fogCoeficient > 0.0f) { in calculateColor()142 fogCoeficient = CLIP(fog->_fogDensity * fogCoeficient, 0.0f, 1.0f); in calculateColor()144 *outCoeficient = *outCoeficient * (1.0f - fogCoeficient); in calculateColor()145 outColor->r = outColor->r * (1.0f - fogCoeficient) + fog->_fogColor.r * fogCoeficient; in calculateColor()146 outColor->g = outColor->g * (1.0f - fogCoeficient) + fog->_fogColor.g * fogCoeficient; in calculateColor()147 outColor->b = outColor->b * (1.0f - fogCoeficient) + fog->_fogColor.b * fogCoeficient; in calculateColor()
143 float fogCoeficient = 0.0f; in calculateColor() local144 fog->calculateCoeficient(position, viewPosition, &fogCoeficient); in calculateColor()145 if (fogCoeficient > 0.0f) { in calculateColor()146 fogCoeficient = CLIP(fog->_fogDensity * fogCoeficient, 0.0f, 1.0f); in calculateColor()148 *outCoeficient = *outCoeficient * (1.0f - fogCoeficient); in calculateColor()149 outColor->r = outColor->r * (1.0f - fogCoeficient) + fog->_fogColor.r * fogCoeficient; in calculateColor()150 outColor->g = outColor->g * (1.0f - fogCoeficient) + fog->_fogColor.g * fogCoeficient; in calculateColor()151 outColor->b = outColor->b * (1.0f - fogCoeficient) + fog->_fogColor.b * fogCoeficient; in calculateColor()