| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
|
|
|
| |
Don't need to differentiate between shadedBy by contains. The 5
plane/face variant is actually fine in both cases. For a perspective
projection, the near plane is essentially at the origin and is handled
by the left/right/top/bottom planes meeting. For the directional light
case (orthographic projection) the near plane is omitted as objects in
front of the clip space still cast shadows into it.
Also includes a fix the distance calculation to not add .w, don't know
where I got the idea this was right.
|
| |
|
|
| |
Fixes comparison with real world (sphere) size parameter.
|
| |
|
|
| |
Use case is the sphere approximating a scenery item such as a tree.
|
| |
|
|
|
| |
Like contains, but doesn't test the back plane as shadow caster can be
anywhere behind the view point and still cast into it.
|
| | |
|
| | |
|
| | |
|
| |
|