mirror of
https://github.com/izzy2lost/Ghostship.git
synced 2026-06-19 01:17:03 -07:00
Fixed metal crashing when using the vanish cap
This commit is contained in:
@@ -266,8 +266,8 @@ fragment float4 fragmentShader(ProjectedVertex in [[stage_in]], constant FrameUn
|
||||
@end
|
||||
|
||||
@if(o_alpha && o_noise)
|
||||
float2 coords = screenSpace.xy * noise_scale;
|
||||
texel.w *= round(saturate(random(float3(floor(coords), noise_frame)) + texel.w - 0.5));
|
||||
float2 coords = in.position.xy * frameUniforms.noiseScale;
|
||||
texel.w *= round(saturate(random(float3(floor(coords), float(frameUniforms.frameCount))) + texel.w - 0.5));
|
||||
@end
|
||||
|
||||
@if(o_alpha)
|
||||
|
||||
Reference in New Issue
Block a user