Skip to content

Commit

Permalink
fix: lut name
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhhkrx committed Dec 12, 2024
1 parent 7b8f3d0 commit 87444e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shaderlab/src/shaders/shadingPBR/BRDF.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#endif

#ifdef MATERIAL_ENABLE_SHEEN
sampler2D material_SheenLUT;
sampler2D scene_prefilteredLUT;
#endif

struct SurfaceData{
Expand Down Expand Up @@ -345,7 +345,7 @@ vec3 BRDF_Diffuse_Lambert(vec3 diffuseColor) {
}

float prefilteredDFG(float NoV, float perceptualRoughness) {
return textureLod(material_SheenLUT, vec2(NoV, perceptualRoughness), 0.0).b;
return textureLod(scene_prefilteredLUT, vec2(NoV, perceptualRoughness), 0.0).b;
}
#endif

Expand Down

0 comments on commit 87444e9

Please sign in to comment.