pub fn packed_shape_code(kind: OccluderKind) -> f32Expand description
Returns the f32 discriminator both shaders switch on for an
OccluderKind.
§Arguments
OccluderKind- The source shape.
§Returns
f32- The shader discriminator: sphere0.0, AABB1.0, triangle2.0.