From b55a9134e5c4c4626c81ff48fefe8fe4666f0298 Mon Sep 17 00:00:00 2001 From: XProger Date: Mon, 27 May 2019 03:20:51 +0300 Subject: [PATCH] #15 3DS minor fixes --- src/platform/3ds/filter_upscale.v.pica | 7 ++++--- src/platform/3ds/gui.v.pica | 11 ++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/platform/3ds/filter_upscale.v.pica b/src/platform/3ds/filter_upscale.v.pica index be68a1f9..d4b72307 100644 --- a/src/platform/3ds/filter_upscale.v.pica +++ b/src/platform/3ds/filter_upscale.v.pica @@ -17,11 +17,12 @@ .proc main ; uViewProj * coord mov r0, uViewProj[3] - mad r1, aCoord.xxxx, uViewProj[0], r0 - mad r1, aCoord.yyyy, uViewProj[1], r1 - mad vPosition, aCoord.zzzz, uViewProj[2], r1 + mad r0, aCoord.xxxx, uViewProj[0], r0 + mad r0, aCoord.yyyy, uViewProj[1], r0 + mad vPosition, aCoord.zzzz, uViewProj[2], r0 mul vTexCoord, const0.xxxx, aTexCoord + mul vColor, const0.yyyy, aLight end diff --git a/src/platform/3ds/gui.v.pica b/src/platform/3ds/gui.v.pica index 409a127d..08c1471c 100644 --- a/src/platform/3ds/gui.v.pica +++ b/src/platform/3ds/gui.v.pica @@ -18,13 +18,14 @@ .proc main ; uViewProj * coord mov r0, uViewProj[3] - mad r1, aCoord.xxxx, uViewProj[0], r0 - mad r1, aCoord.yyyy, uViewProj[1], r1 - mad vPosition, aCoord.zzzz, uViewProj[2], r1 + mad r0, aCoord.xxxx, uViewProj[0], r0 + mad r0, aCoord.yyyy, uViewProj[1], r0 + mad vPosition, aCoord.zzzz, uViewProj[2], r0 mul vTexCoord, const0.xxxx, aTexCoord - mul r2, const0.yyyy, aLight - mul vColor, uMaterial, r2 + + mul r1, const0.yyyy, aLight + mul vColor, uMaterial, r1 end .end