Created
November 30, 2023 21:28
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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