Skip to content

Commit

Permalink
#15 3DS minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
XProger committed May 27, 2019
1 parent ad25915 commit b55a913
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
7 changes: 4 additions & 3 deletions src/platform/3ds/filter_upscale.v.pica
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions src/platform/3ds/gui.v.pica
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b55a913

Please sign in to comment.