This commit is contained in:
TheRedShip
2025-02-22 18:26:25 +01:00
parent d7b33309d8
commit aead7501f1
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ void main()
totalWeight += weight;
}
}
light * (1.0 / totalWeight);
light *= (1.0 / totalWeight);
if (u_pass == u_pass_count - 1)
{
vec4 color = light * imageLoad(color_texture, pixel_coords);

View File

@ -112,7 +112,7 @@ int Camera::portalTeleport(Scene *scene, float delta_time, Renderer &renderer)
float distance_future_pos = glm::length(future_pos - _position);
float distance_portal = glm::length(point_projected - _position);
float imprecision = 0.101f;
float imprecision = 0.1f;
if (distance_portal <= distance_future_pos && glm::dot(glm::normalize(future_pos - _position), obj.normal) > 0.0f)
{
std::cout << "Teleport" << std::endl;