This commit is contained in:
shr 2023-09-15 23:53:39 +09:00 committed by Cameron Taylor
parent b88fbeb206
commit 56cecf98a0

View file

@ -993,7 +993,7 @@ class PlayState extends MusicBeatSubState
bufferCameraFrontEnd.unlock(); bufferCameraFrontEnd.unlock();
// Update the buffer texture using `flashSprite`. // Update the buffer texture using `flashSprite`.
// This is IMMEDIATELY done while the main cameras are not rendered yet, // This is IMMEDIATELY done while the main cameras are not rendered yet,
// so any shaders in the main part that refers the texture can see the updated texture! // so any shaders in the main part that refer the texture can see the updated texture!
maskTexture.fillRect(new Rectangle(0, 0, FlxG.width, FlxG.height), 0); maskTexture.fillRect(new Rectangle(0, 0, FlxG.width, FlxG.height), 0);
maskTexture.draw(camMask.flashSprite, new openfl.geom.Matrix(1, 0, 0, 1, camMask.flashSprite.x, camMask.flashSprite.y)); maskTexture.draw(camMask.flashSprite, new openfl.geom.Matrix(1, 0, 0, 1, camMask.flashSprite.x, camMask.flashSprite.y));
} }