Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Bloom-Engine/engine
/ reflect
Function
reflect
tools/bloom-reference/src/main.rs:1328–1330 ·
view source on GitHub ↗
(incoming: Vec3, normal: Vec3)
Source
from the content-addressed store, hash-verified
1326
}
1327
1328
fn reflect(incoming: Vec3, normal: Vec3) -> Vec3 {
1329
incoming - normal * (2.0 * incoming.dot(normal))
1330
}
1331
1332
fn smith_g1(n_dot_x: f32, alpha: f32) -> f32 {
1333
let a2 = alpha * alpha;
Callers
1
sample_brdf
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected