fix: target with shader rendering y-axis inversion

This commit is contained in:
huaqo-games
2025-03-28 10:31:35 +01:00
parent e25c8a8e7a
commit a08565ff40
6 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ void UpdatePostFX(PostProcessing *postFX){
void RenderPostFX(PostProcessing *postFX, RenderTexture2D *target){
BeginShaderMode(postFX->shader);
DrawTextureRec(target->texture, (Rectangle){ 0, 0, target->texture.width, target->texture.height }, (Vector2){ 0, 0 }, WHITE);
DrawTextureRec(target->texture, (Rectangle){ 0, 0, target->texture.width, -target->texture.height }, (Vector2){ 0, 0 }, WHITE);
EndShaderMode();
}