Skip to content

Instantly share code, notes, and snippets.

@ArturoNereu
Created November 30, 2023 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArturoNereu/57fe8bb98de2134756d8eeb9f34029e3 to your computer and use it in GitHub Desktop.
Save ArturoNereu/57fe8bb98de2134756d8eeb9f34029e3 to your computer and use it in GitHub Desktop.
Volume Component to allow the configuration of the Outline color and Width for Unity' URP 3D Sample: https://unity.com/demos/urp-3d-sample
using UnityEngine;
using UnityEngine.Rendering;
[VolumeComponentMenu("Sample Scene/Outline")]
public class OutlineVolumeComponent : VolumeComponent
{
public BoolParameter Enabled = new BoolParameter(false);
public ColorParameter outlineColor = new ColorParameter(Color.white, true, false, false);
public ClampedFloatParameter outlineWidth = new ClampedFloatParameter(0,0, 10.0f);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment