summaryrefslogtreecommitdiff
path: root/port
diff options
context:
space:
mode:
authorSonic Dreamcaster <alejandro.asenjo88@gmail.com>2025-05-13 21:59:01 -0300
committerSonic Dreamcaster <alejandro.asenjo88@gmail.com>2025-05-13 21:59:01 -0300
commit2c9bc2738dfd03eaf81e0c9339107f63062f5d99 (patch)
treeeccf718ce2bb6f765237c6fa147634e0b4b7727b /port
parentfe69a3ff835748bb9bf977db3a15d166ff61f968 (diff)
update LUS
Diffstat (limited to 'port')
-rw-r--r--port/shaders/directx/default.shader.hlsl6
1 files changed, 3 insertions, 3 deletions
diff --git a/port/shaders/directx/default.shader.hlsl b/port/shaders/directx/default.shader.hlsl
index f36c2dae..980becb8 100644
--- a/port/shaders/directx/default.shader.hlsl
+++ b/port/shaders/directx/default.shader.hlsl
@@ -186,7 +186,7 @@ float4 PSMain(PSInput input, float4 screenSpace : SV_Position) : SV_TARGET {
float2 tc@{i} = input.uv@{i};
@{s = o_clamp[i][0]}
@{t = o_clamp[i][1]}
- @if(s && t)
+ @if(s || t)
int2 texSize@{i};
g_texture@{i}.GetDimensions(texSize@{i}.x, texSize@{i}.y);
@if(s && t)
@@ -224,7 +224,7 @@ float4 PSMain(PSInput input, float4 screenSpace : SV_Position) : SV_TARGET {
@else
float4 blendVal@{i} = float4(0, 0, 0, 0);
@end
- texval@{i} = lerp(texVal@{i}, blendVal@{i}, g_textureMask@{i}.Sample(g_sampler@{i}, tc@{i}).a);
+ texVal@{i} = lerp(texVal@{i}, blendVal@{i}, g_textureMask@{i}.Sample(g_sampler@{i}, tc@{i}).a);
@end
}
@else
@@ -329,4 +329,4 @@ float4 PSMain(PSInput input, float4 screenSpace : SV_Position) : SV_TARGET {
return float4(texel, 1.0);
@end
@end
-} \ No newline at end of file
+}