forked from MoonsideGames/MoonWorks
fix clear color conversion
parent
a88d8dabbb
commit
e5213da686
|
@ -114,10 +114,10 @@ namespace MoonWorks.Graphics
|
||||||
renderTarget = renderTarget.Handle,
|
renderTarget = renderTarget.Handle,
|
||||||
clearColor = new Refresh.Vec4
|
clearColor = new Refresh.Vec4
|
||||||
{
|
{
|
||||||
x = clearColor.R,
|
x = clearColor.R / 255f,
|
||||||
y = clearColor.G,
|
y = clearColor.G / 255f,
|
||||||
z = clearColor.B,
|
z = clearColor.B / 255f,
|
||||||
w = clearColor.A
|
w = clearColor.A / 255f
|
||||||
},
|
},
|
||||||
loadOp = (Refresh.LoadOp) loadOp,
|
loadOp = (Refresh.LoadOp) loadOp,
|
||||||
storeOp = (Refresh.StoreOp) storeOp
|
storeOp = (Refresh.StoreOp) storeOp
|
||||||
|
|
Loading…
Reference in New Issue