Fix RGB Seizure

This commit is contained in:
Isaac Marovitz
2023-08-02 21:18:28 -04:00
committed by Evan Husted
parent 8bf33b3098
commit 671aff68a6
3 changed files with 8 additions and 4 deletions

View File

@@ -32,6 +32,5 @@ fragment float4 fragmentMain(CopyVertexOut in [[stage_in]],
texture2d<float> tex) {
constexpr sampler sam(min_filter::nearest, mag_filter::nearest, mip_filter::none);
float3 color = tex.sample(sam, in.uv).xyz;
return float4(color, 1.0f);
return tex.sample(sam, in.uv).xyzw;
}