Skip to content

Commit

Permalink
Change IBL LUT
Browse files Browse the repository at this point in the history
  • Loading branch information
roeas committed Jan 9, 2024
1 parent 2e35c25 commit a0bbeed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Engine/BuiltInShaders/common/Envirnoment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ vec3 SampleEnvRadiance(vec3 reflectDir, float mip) {
}

vec2 SampleIBLSpecularBRDFLUT(float NdotV, float roughness) {
vec2 uv = clamp(vec2(NdotV, 1.0 - roughness), vec2_splat(0.05), vec2_splat(0.95));
return texture2D(s_texLUT, uv).xy;
return texture2D(s_texLUT, vec2(NdotV, 1.0 - roughness)).xy;
}
#endif

Expand Down
Binary file modified Projects/Test/Textures/lut/ibl_brdf_lut.dds
Binary file not shown.

0 comments on commit a0bbeed

Please sign in to comment.