io.github.srs.model.illumination.raster

Members list

Type members

Classlikes

Provide occlusion rasterization for Entity shapes.

Provide occlusion rasterization for 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 * ScaleFactor => grid-space (pixels/cells).
  • All min/max index ranges are inclusive and clamped to grid bounds.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object OpacityValue

Companion object providing utility methods and extensions for OcclusionValue.

Companion object providing utility methods and extensions for OcclusionValue.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Types

opaque type OpacityValue

Represents the occlusion value of a grid cell.

Represents the occlusion value of a grid cell.

Occlusion values range from 0.0 (fully transparent) to 1.0 (fully occluded).

Attributes