mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 15:59:49 +02:00
Increase tesselation to minimize artifacts.
This commit is contained in:
parent
feabd1d5b3
commit
892987d68a
1 changed files with 2 additions and 2 deletions
|
@ -268,7 +268,7 @@ void DeferredLightingEffect::render() {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
glTranslatef(light.position.x, light.position.y, light.position.z);
|
glTranslatef(light.position.x, light.position.y, light.position.z);
|
||||||
Application::getInstance()->getGeometryCache()->renderSphere(expandedRadius, 32, 32);
|
Application::getInstance()->getGeometryCache()->renderSphere(expandedRadius, 64, 64);
|
||||||
}
|
}
|
||||||
|
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
|
@ -321,7 +321,7 @@ void DeferredLightingEffect::render() {
|
||||||
glRotatef(glm::degrees(glm::angle(spotRotation)), axis.x, axis.y, axis.z);
|
glRotatef(glm::degrees(glm::angle(spotRotation)), axis.x, axis.y, axis.z);
|
||||||
glTranslatef(0.0f, 0.0f, -light.radius * (1.0f + SCALE_EXPANSION * 0.5f));
|
glTranslatef(0.0f, 0.0f, -light.radius * (1.0f + SCALE_EXPANSION * 0.5f));
|
||||||
Application::getInstance()->getGeometryCache()->renderCone(expandedRadius * glm::tan(light.cutoff),
|
Application::getInstance()->getGeometryCache()->renderCone(expandedRadius * glm::tan(light.cutoff),
|
||||||
expandedRadius, 32, 8);
|
expandedRadius, 64, 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
|
|
Loading…
Reference in a new issue