Closed philostler closed 11 years ago
Well spotted! It turns out I was applying the color to both the material and the vertex color - which get multiple together in the fragment shader. Hence it the resulting colour would always appear darker.
I've just checked in a fix https://github.com/unwrong/Starling-Extension-Graphics/commit/434e09b3edc3f8c7cbda3312f5485ae9f896c3fc
Thanks for reporting this.
:+1: excellent... thanks for the fix!
I'm using the following snippet to create squares with rounded corners and a stroke of a given colour...
However, the resulting stroke is not the colour I expected. Instead of
0x0084b5
it is0x134680
.If I create the stroke from a texture I get the correct colour...