improve PCF
This commit is contained in:
parent
dab82367f0
commit
057240acc1
2 changed files with 16 additions and 19 deletions
|
@ -1,6 +1,7 @@
|
|||
const PI = 3.14159;
|
||||
const INV_SQRT_2 = 0.70710678118654752440; // 1 / sqrt(2)
|
||||
const INV_SQRT_3 = 0.57735026918962576451; // 1 / sqrt(3)
|
||||
const SHADOW_SAMPLES = 8;
|
||||
const INV_SHADOW_SAMPLES = 1.0 / 8.0;
|
||||
const SHADOW_SAMPLE_DIST = 0.001;
|
||||
// in every direction from 0,0
|
||||
// total = (2n + 1)^2
|
||||
const SHADOW_SAMPLES = 2;
|
||||
const INV_SHADOW_SAMPLES = 1.0 / 25.0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue