1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-12 08:04:09 +02:00

#15 3DS minor fixes

This commit is contained in:
XProger
2019-05-27 03:20:51 +03:00
parent ad259150b3
commit b55a9134e5
2 changed files with 10 additions and 8 deletions

View File

@@ -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

View File

@@ -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