mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:44:01 +02:00
Fix for Windows build failure.
This commit is contained in:
parent
222655d948
commit
62eeeaa1c6
1 changed files with 2 additions and 1 deletions
|
@ -2294,7 +2294,8 @@ void Application::updateShadowMap() {
|
|||
|
||||
// to reduce texture "shimmer," move in texel increments
|
||||
float texelSize = (2.0f * radius) / fbo->width();
|
||||
center = glm::round(center / texelSize) * texelSize;
|
||||
center = glm::vec3(roundf(center.x / texelSize) * texelSize, roundf(center.y / texelSize) * texelSize,
|
||||
roundf(center.z / texelSize) * texelSize);
|
||||
|
||||
glm::vec3 minima(center.x - radius, center.y - radius, center.z - radius);
|
||||
glm::vec3 maxima(center.x + radius, center.y + radius, center.z + radius);
|
||||
|
|
Loading…
Reference in a new issue