[Fix] (Espryt): sample cube-array shadow textures at LOD 0 with texture() outside the fragment stage

This commit is contained in:
2026-10-12 19:05:33 -04:00
parent 702f937ca9
commit 05d58a566a
4 changed files with 115 additions and 0 deletions
@@ -12943,6 +12943,7 @@ namespace MobileGL::MG_Backend::DirectGLES {
source = ProcessOutColorLocations(source);
source = ForceFlatIntegerVaryings(source, glShaderType);
source = BroadcastLegacyFragColor(std::move(source), glShaderType, m_fragColorBroadcastCount);
source = LowerZeroGradCubeArrayShadowLookups(source, glShaderType);
source = EmulateTextureLodBias(source, ShouldAvoidExplicitLodBiasOnAngleLlvmpipe());
if (ClampsUnsignedMultisampleFetchesAtRuntime()) {
source = ClampUnsignedMultisampleFetches(source);