]> Chaos Git - corbenik/ctrulib.git/commitdiff
fixed lighting in shader for gpu example
authorEric Hobbs <elhobbs@comcast.net>
Sun, 22 Feb 2015 19:55:04 +0000 (14:55 -0500)
committerEric Hobbs <elhobbs@comcast.net>
Sun, 22 Feb 2015 19:55:04 +0000 (14:55 -0500)
examples/gpu/data/test.vsh

index 13d356f42a203b2b3be059c3631650ec1e1b64ad..37293aecc2c629e8c71af1bf96b7bd887f4fc66b 100644 (file)
@@ -37,7 +37,7 @@
                ; result.color = crappy lighting
                dp3 r0, c8, v2 (0x4)
                max r0, c20, r0 (0x9)
-               mul r0, c9, r0 (0x8)
+               mul r0, c9, r0 (0x4)
                add o1, c9, r0 (0x4)
                mov o1, c20 (0x3)
                nop