Fix clone tool for Metal
This commit is contained in:
@@ -9,7 +9,7 @@ class MakeClone {
|
||||
frag.write('vec2 cloneDeltaLocal = cloneDelta;'); // TODO: spirv workaround
|
||||
frag.write('vec2 gbufferSizeLocal = gbufferSize;'); // TODO: spirv workaround
|
||||
#if (kha_direct3d11 || kha_direct3d12 || kha_metal || kha_vulkan)
|
||||
frag.write('vec2 texCoordInp = texelFetch(gbuffer2, ivec2((sp + cloneDeltaLocal) * gbufferSizeLocal), 0).ba;');
|
||||
frag.write('vec2 texCoordInp = texelFetch(gbuffer2, ivec2((sp.xy + cloneDeltaLocal) * gbufferSizeLocal), 0).ba;');
|
||||
#else
|
||||
frag.write('vec2 texCoordInp = texelFetch(gbuffer2, ivec2((sp.x + cloneDeltaLocal.x) * gbufferSizeLocal.x, (1.0 - (sp.y + cloneDeltaLocal.y)) * gbufferSizeLocal.y), 0).ba;');
|
||||
#end
|
||||
|
||||
Reference in New Issue
Block a user