Skip to content

Question about LUT Parameters in PBR-IBL-Specular IBL #415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
LiuZengqiang opened this issue Mar 27, 2025 · 0 comments
Open

Question about LUT Parameters in PBR-IBL-Specular IBL #415

LiuZengqiang opened this issue Mar 27, 2025 · 0 comments

Comments

@LiuZengqiang
Copy link

According to the provided code snippet:

float lod             = getMipLevelFromRoughness(roughness);
vec3 prefilteredColor = textureCubeLod(PrefilteredEnvMap, refVec, lod);
vec2 envBRDF          = texture2D(BRDFIntegrationMap, vec2(NdotV, roughness)).xy;
vec3 indirectSpecular = prefilteredColor * (F * envBRDF.x + envBRDF.y);

and Epic Games' report, the horizontal texture coordinate of the LUT should be NdotV (i.e., n·wo). However, the original article states:

"We generate the lookup texture by treating the horizontal texture coordinate (ranged between 0.0 and 1.0) of a plane as the BRDF's input n⋅ωi."

Why does the article use n·ωi instead of n·wo? Is this a discrepancy, or is there a misunderstanding?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant