Skip to content

Commit

Permalink
igl | Fix mipmapping issue in Tiny_MeshLarge
Browse files Browse the repository at this point in the history
Summary:
`Tiny_MeshLarge` lost mip-mapping after D48017483.

The default sampler #0 comes with mip-mapping disabled. Use our custom sampler bound to the binding slot #1.

https://pxl.cl/3dXgr

Reviewed By: EricGriffith

Differential Revision: D48709374

fbshipit-source-id: a59cd4844f93bf56f757b91115a7b40891f9bbd1
  • Loading branch information
corporateshark authored and facebook-github-bot committed Aug 29, 2023
1 parent 5a23883 commit 567bf10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/desktop/Tiny/Tiny_MeshLarge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ layout(set = 0, binding = 0) uniform sampler2DShadow texShadow;
layout(set = 0, binding = 4) uniform samplerCube texSkyboxIrradiance;
vec4 textureBindless2D(uint textureid, vec2 uv) {
return texture(sampler2D(kTextures2D[textureid], kSamplers[0]), uv);
return texture(sampler2D(kTextures2D[textureid], kSamplers[1]), uv);
}
#else
layout(binding = 0) uniform sampler2D texShadow;
Expand Down

0 comments on commit 567bf10

Please sign in to comment.