| 172 | } |
| 173 | |
| 174 | void PointLight::_renderViz( SceneRenderState *state ) |
| 175 | { |
| 176 | GFXDrawUtil *draw = GFX->getDrawUtil(); |
| 177 | |
| 178 | GFXStateBlockDesc desc; |
| 179 | desc.setZReadWrite( true, false ); |
| 180 | desc.setCullMode( GFXCullNone ); |
| 181 | desc.setBlend( true ); |
| 182 | |
| 183 | // Base the sphere color on the light color. |
| 184 | ColorI color = mColor.toColorI(); |
| 185 | color.alpha = 16; |
| 186 | |
| 187 | draw->drawSphere( desc, mRadius, getPosition(), color ); |
| 188 | } |
nothing calls this directly
no test coverage detected