MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / pow

Function pow

examples/shaders/shared/src/lib.rs:46–48  ·  view source on GitHub ↗
(v: Vec3, power: f32)

Source from the content-addressed store, hash-verified

44}
45
46pub fn pow(v: Vec3, power: f32) -> Vec3 {
47 vec3(v.x.powf(power), v.y.powf(power), v.z.powf(power))
48}
49
50pub fn exp(v: Vec3) -> Vec3 {
51 vec3(v.x.exp(), v.y.exp(), v.z.exp())

Callers 4

tonemapFunction · 0.85
total_rayleighFunction · 0.85
total_mieFunction · 0.85
skyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected