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