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
268 268
269 } else {269 } else {
270 glTranslatef(light.position.x, light.position.y, light.position.z); 270 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);
272 }272 }
273 273
274 glPopMatrix();274 glPopMatrix();
@@ -321,7 +321,7 @@ void DeferredLightingEffect::render() { · 46 unmodified lines
321 glRotatef(glm::degrees(glm::angle(spotRotation)), axis.x, axis.y, axis.z); 321 glRotatef(glm::degrees(glm::angle(spotRotation)), axis.x, axis.y, axis.z);
322 glTranslatef(0.0f, 0.0f, -light.radius * (1.0f + SCALE_EXPANSION * 0.5f)); 322 glTranslatef(0.0f, 0.0f, -light.radius * (1.0f + SCALE_EXPANSION * 0.5f));
323 Application::getInstance()->getGeometryCache()->renderCone(expandedRadius * glm::tan(light.cutoff),323 Application::getInstance()->getGeometryCache()->renderCone(expandedRadius * glm::tan(light.cutoff),
324 expandedRadius, 32, 8);324 expandedRadius, 64, 32);
325 }325 }
326 326
327 glPopMatrix();327 glPopMatrix();