HDR Color
It works when create shape by menu bar in editor,but use c# draw command it lose hdr effect of color.
...
[ColorUsage(true, true)]
public Color InnerStartColor;
...
_discColors.innerStart = InnerStartColor;
_discColors.innerEnd = InnerEndColor;
_discColors.outerStart = OuterStartColor;
_discColors.outerStart = OuterEndColor;
Draw.DiscGeometry = DiscGeometry;
Draw.Matrix = transform.localToWorldMatrix;
Draw.Radius = Radius;
Draw.Thickness = Thickness;
Draw.RadiusSpace = ThicknessSpace;
Draw.ThicknessSpace = ThicknessSpace;
Draw.ZTest = ZTest;
Draw.UseDashes = Dashed;
if(Dashed)
Draw.DashStyle = DashStyle;
switch (DiscType)
{
case DiscType.Disc:
Draw.Disc(_discColors);
Could you give a little more detail? It seems to work fine on my end
right: disc component
bottom left: immediate mode disc using the colors from the component
top left: immediate mode disc using colors from the inspector