Home
last modified time | relevance | path

Searched refs:sin2h (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/
H A D3d_dm_brdf_common.h53 const float sin2h = 1.0 - cos2h; in dAshikhmin() local
54 const float sin4h = sin2h * sin2h; in dAshikhmin()
55 return (sin4h + 4.0 * exp(-cos2h / (sin2h * r2))) / (CORE_BRDF_PI * (1.0 + 4.0 * r2) * sin4h); in dAshikhmin()
68 const float sin2h = 1.0 - cos2h; // NOTE: should max to fp16 in dCharlie() local
69 return (2.0 + invR) * pow(sin2h, invR * 0.5) / (2.0 * CORE_BRDF_PI); in dCharlie()