Function functional_envmap
Source pub fn functional_envmap<F>(resolution: usize, f: F) -> Result<Array4<f32>>
Expand description
Construct envmap with a given function
§Arguments
resolution
: a single integer
f
: function converting the normalized envmap direction (f32 vector of 3) to intensity (f32 vector of 3)
§Return
- 3 * 6 *
resolution
* resolution