Use non-HDR colors

Use non-HDR colors

For some workflows you might want to use non-HDR colors for the outlines. In the current version of Linework, all color fields have HDR enabled. You can change this manually if you want to use non-HDR colors.

Jump to heading What to change?

The color fields in Linework all have the ColorUsage attribute. This attribute works as follows.

[ColorUsage(showAlpha, hdr)]
public Color color = Color.white;

To change these to a non-HDR workflow, simply change them as follows.

// HDR workflow
[ColorUsage(true, true)]
public Color color = Color.white;

// non-HDR workflow
[ColorUsage(true, false)]
public Color color = Color.white;

Jump to heading Where to change?

Depending on the outline that you use, you'll need to make the changes mentioned above in the following files.

Fast Outline

  • Linework.FastOutline.Outline

Soft Outline

  • Linework.SoftOutline.Outline
  • Linework.WideOutline.SoftOutlineSettings

Wide Outline

  • Linework.WideOutline.Outline
  • Linework.WideOutline.WideOutlineSettings

Edge Detection

  • Linework.EdgeDetection.EdgeDetectionSettings

Surface Fill

  • Linework.SurfaceFill.Fill

I am looking into a better way that allows you to switch more easily between HDR and non-HDR workflows.

❓ Confused?

Need more information about any of this? Contact me.

⭐ Enjoying Linework?

Writing a review helps me out greatly! It helps the asset's visibility and supports me in the development of Linework! If you have a support question, check ⁠support instead. Thank you very much.

Write a review