Change color range from [0,255] to [0,1]

This commit is contained in:
Cruel
2015-11-23 00:45:36 -05:00
parent 0ef129430d
commit 3f138bb3f0
+3 -1
View File
@@ -4,6 +4,8 @@
// setup constants
.alias myconst c32 as (1.0, 0.0, 0.5, 1.0)
// x = 1/255
.alias colorfix c33 as (0.0039215686, 0, 0, 0)
// setup output map
.alias outpos o0 as position
@@ -41,7 +43,7 @@ tex: // result.texcoord = in.texcoord
mov outtex2, myconst.yyyw
color: // result.color = in.color
mov outcol, v1
mul outcol, v1.xyzw, colorfix.xxxx
nop
end