OcclusionRaster
io.github.srs.model.illumination.raster.OcclusionRaster
object OcclusionRaster
Provide occlusion rasterization for io.github.srs.model.entity.Entity shapes.
Turns circles / rectangles into a discrete grid used for light blocking. Cells contain 0.0 (Cleared) or 1.0 (Occluded).
- Sampling at the center of each cell: (x + 0.5, y + 0.5).
- Coordinate scaling: world units * io.github.srs.model.illumination.model.ScaleFactor => grid-space (pixels/cells).
- All min/max index ranges are inclusive and clamped to grid bounds.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
OcclusionRaster.type
Members list
In this article