pub struct PointLight {
pub position: Vec3,
pub radius: f32,
pub color: Vec3,
pub fill: bool,
}Expand description
A light radiating equally in every direction.
Fields§
§position: Vec3Where it is, in render space.
radius: f32How far its influence reaches, in world units.
A hard bound, not a fade cut short. The shader’s falloff reaches exactly zero here, and the clustering pass culls against this same number — so a light is either in a froxel’s list or contributing nothing to it, and there is no radius at which the two disagree and leave a seam. Larger costs more froxels, not a softer edge.
color: Vec3Colour premultiplied by intensity. May exceed 1.0, like the sun’s:
the scene target is Rgba16Float precisely so that it can.
fill: boolWhether this is a fill light: one that lights but casts no shadow and adds no specular.
Topic 44’s rung 5 asked for it beside the area lights.
It is how a stack with no baked bounce lights the far end of a room
without paying for a shadow map or leaving a highlight where no fixture
is. crcbl_shaders::light::FLAG_FILL is the row’s bit;
shadow::Selection refuses such a light a
tile and mesh.slang refuses it a lobe.
Every kind carries it, on this field’s terms exactly, and
Light::is_fill is where one question is asked of the three.