sgl-3d 0.2.0

Caller-driven 3D rendering for SGL games, native and in the browser (WebGPU)
Documentation
1
2
3
4
// Rec. 709 luminance of linear RGB.
fn luminance(color:vec3<f32>)->f32 {
 return dot(color,vec3(.2126,.7152,.0722));
}