Function directional_envmap
Source pub fn directional_envmap(
resolution: usize,
direction: VectorView3<'_, f32>,
intensity: f32,
) -> Result<Array4<f32>>
Expand description
Construct one-hot envmap with given direction and intensity
§Arguments
resolution
: a single integer
direction
: f32 vector of 3
intensity
: f32 scalar
§Return
- 3 * 6 *
resolution
* resolution