ies_distribution.computeShader
- README.md694 B
- bindings.yaml172 B
- shader.wgsl2.6 KB
This package holds more than this page lists. See all of its files in its world.
README.md
ies_distribution
Rasterizes a luminaire's vertical candela distribution into a square cookie a spot light projects through its cone: the radius of a texel is the angle from the axis, and its brightness the candela the file states at that angle, interpolated between the two measured angles either side.
Bindings
| name | kind |
|---|---|
ies_curve | buffer (read, vec4<f32>): a header row (sample_count, cone_half_angle_deg, resolution, 0), then one (normalized candela, vertical angle in degrees, 0, 0) row per sample |
ies_texels | buffer (read_write, vec2<u32>): one rgba16f texel per entry, the layout compute.copyBufferToTexture reads for that format |