HDR Color

Avatar
  • updated
  • Not a bug

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);

Reporting a bug? please specify Unity version:
2019.4
Reporting a bug? please specify Shapes version:
Reporting a bug? please specify Render Pipeline:
Built-in render pipeline
Avatar
Freya Holmér creator
  • Not a bug

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

Avatar
Freya Holmér creator

did you find the issue on your end? otherwise I'll be closing this unless I can reproduce it

Avatar
君莫笑
Quote from Freya Holmér

did you find the issue on your end? otherwise I'll be closing this unless I can reproduce it

thanks, just close this