Skip to content

Commit eb0dddc

Browse files
committed
f
1 parent 8405245 commit eb0dddc

File tree

6 files changed

+96
-91
lines changed

6 files changed

+96
-91
lines changed

src/render/gpu/shaders/texture_rgb_pixelart.frag.dxil.h

Lines changed: 22 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/render/gpu/shaders/texture_rgb_pixelart.frag.hlsl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
PSOutput main(PSInput input) {
44
PSOutput output;
55
float2 uv = GetPixelArtUV(input);
6-
float4 color = u_texture.SampleGrad(u_sampler, uv, ddx(input.v_uv), ddy(input.v_uv));
7-
output.o_color = color * input.v_color;
6+
output.o_color = float4(u_texture.SampleGrad(u_sampler, uv, ddx(input.v_uv), ddy(input.v_uv)).rgb, 1.0f) * input.v_color;
87
return output;
98
}

src/render/gpu/shaders/texture_rgb_pixelart.frag.msl.h

Lines changed: 23 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)