You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was just testing HSV colors I found a bug I thought was in HSV but is actually in vecdraw itself and also manifests with RGB colors in vecdraw too.
Try this:
set testcolor to rgb(0,0,0). // this is *supposed* to mean opaque black.
set vd to vecdraw(v(0,0,0), v(0,5,0), testcolor, "test", 1, true).
And you get a vector that is transparent rather than *black" like it should be.
If you fiddle with the brightness of the color, you find that it's actually altering the alpha value, not the darkness. For example, if you try a grey color like rgb(0.5,0.5,0.5) then what you really get is white but semi-transparent, rather than grey.
The text was updated successfully, but these errors were encountered:
Dunbaratu
added
the
bug
Weird outcome is probably not what the mod programmer expected.
label
Mar 19, 2019
FixesKSP-KOS#2463
The Shader chosen from KSP's pre-made shaders was one
that was additive-only and would never darken colors.
That's all that was wrong.
When I was just testing HSV colors I found a bug I thought was in HSV but is actually in vecdraw itself and also manifests with RGB colors in vecdraw too.
Try this:
And you get a vector that is transparent rather than *black" like it should be.
If you fiddle with the brightness of the color, you find that it's actually altering the alpha value, not the darkness. For example, if you try a grey color like
rgb(0.5,0.5,0.5)
then what you really get is white but semi-transparent, rather than grey.The text was updated successfully, but these errors were encountered: