Fixe bug in pbr

This commit is contained in:
2026-02-19 19:08:41 +09:00
parent b41ea60c02
commit 5183e73ca0
12 changed files with 155 additions and 94 deletions

View File

@@ -9,6 +9,7 @@
float ggx_distribution(float n_dot_h, float roughness);
float ggx_g1(float n_dot_v, float roughness);
float ggx_g_smith(float n_dot_v, float n_dot_l, float roughness);
float ggx_visibility(float n_dot_v, float n_dot_l, float roughness);
// GGX VNDF sampling (Heitz 2018) for isotropic GGX.
// Returns a half-vector (H) sampled from the distribution of visible normals.