summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal54@gmail.com>2019-12-10 05:13:02 +0100
committerRafał Mikrut <mikrutrafal54@gmail.com>2019-12-10 05:13:02 +0100
commited1c4bc77db88fa0f8f599ca2d3c4b533a94a654 (patch)
tree45e5f3b02b6f9c62116ba7fb513c87fa1f26a001 /scene/3d
parent6f38aeef5255d1fdeb99d727a0f67b9be6ccdf36 (diff)
Removed unused variables, add some constants numbers
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/voxel_light_baker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/3d/voxel_light_baker.cpp b/scene/3d/voxel_light_baker.cpp
index 8e09930aed..3235953730 100644
--- a/scene/3d/voxel_light_baker.cpp
+++ b/scene/3d/voxel_light_baker.cpp
@@ -1594,10 +1594,10 @@ Vector3 VoxelLightBaker::_compute_pixel_light_at_pos(const Vector3 &p_pos, const
case BAKE_QUALITY_LOW: {
//default quality
static const Vector3 dirs[4] = {
- Vector3(0.707107, 0, 0.707107),
- Vector3(0, 0.707107, 0.707107),
- Vector3(-0.707107, 0, 0.707107),
- Vector3(0, -0.707107, 0.707107)
+ Vector3(Math_SQRT12, 0, Math_SQRT12),
+ Vector3(0, Math_SQRT12, Math_SQRT12),
+ Vector3(-Math_SQRT12, 0, Math_SQRT12),
+ Vector3(0, -Math_SQRT12, Math_SQRT12)
};
static const float weights[4] = { 0.25, 0.25, 0.25, 0.25 };