History

Increase tesselation to minimize artifacts.

Andrzej Kapolka committed 12 years ago

Commit 892987d1 parent feabd1d1 file · +2 −2Browse files

Showing the changes to interface/src/renderer/DeferredLightingEffect.cpp (1 of 1 file). Show all

Unified · Split

interface/src/renderer/DeferredLightingEffect.cpp+2−2
@@ -268,7 +268,7 @@ void DeferredLightingEffect::render() { · 267 unmodified lines
268268
269269 } else {
270270 glTranslatef(light.position.x, light.position.y, light.position.z);
271− Application::getInstance()->getGeometryCache()->renderSphere(expandedRadius, 32, 32);
271+ Application::getInstance()->getGeometryCache()->renderSphere(expandedRadius, 64, 64);
272272 }
273273
274274 glPopMatrix();
@@ -321,7 +321,7 @@ void DeferredLightingEffect::render() { · 46 unmodified lines
321321 glRotatef(glm::degrees(glm::angle(spotRotation)), axis.x, axis.y, axis.z);
322322 glTranslatef(0.0f, 0.0f, -light.radius * (1.0f + SCALE_EXPANSION * 0.5f));
323323 Application::getInstance()->getGeometryCache()->renderCone(expandedRadius * glm::tan(light.cutoff),
324− expandedRadius, 32, 8);
324+ expandedRadius, 64, 32);
325325 }
326326
327327 glPopMatrix();