mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
~ | Fix
This commit is contained in:
@ -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);
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user