Fix shadowmap sampling outside of frustum

This commit is contained in:
Lauri Räsänen 2023-11-04 19:29:55 +02:00
parent 5e0001e2e1
commit 5afa12a236
2 changed files with 21 additions and 3 deletions

View file

@ -1 +1,3 @@
const PI = 3.14159;
const PI = 3.14159;
const INV_SQRT_2 = 0.70710678118654752440; // 1 / sqrt(2)
const INV_SQRT_3 = 0.57735026918962576451; // 1 / sqrt(3)