MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / _renderViz

Method _renderViz

Engine/source/T3D/pointLight.cpp:174–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174void 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}

Callers

nothing calls this directly

Calls 7

getPositionFunction · 0.85
getDrawUtilMethod · 0.80
setZReadWriteMethod · 0.80
setCullModeMethod · 0.80
setBlendMethod · 0.80
toColorIMethod · 0.80
drawSphereMethod · 0.45

Tested by

no test coverage detected