Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into 436-display-video-o…
Browse files Browse the repository at this point in the history
…n-avatar
  • Loading branch information
koschke committed Sep 30, 2024
2 parents 12a4594 + 1abf4b0 commit 013baf8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Assets/Plugins/HighlightPlus/Scripts/HighlightEffect.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Assets/Plugins/HighlightPlus/Scripts/VRCheck.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Assets/SEE/Game/Drawable/GameHighlighter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static HighlightEffect EnableGlowOutline(GameObject obj)
effect.outline = 1;
effect.outlineQuality = HighlightPlus.QualityLevel.Highest;
effect.outlineColor = Color.yellow;
effect.glowQuality = HighlightPlus.QualityLevel.Highest;
effect.glowQuality = Highlighter.DefaultGlowQuality;
effect.glow = 1.0f;
effect.glowHQColor = Color.yellow;
return effect;
Expand All @@ -40,7 +40,7 @@ public static HighlightEffect EnableGlowOverlay(GameObject obj)
effect.highlighted = true;
effect.previewInEditor = false;
effect.outline = 0;
effect.glowQuality = HighlightPlus.QualityLevel.Highest;
effect.glowQuality = Highlighter.DefaultGlowQuality;
effect.glow = 1.0f;
effect.glowHQColor = Color.yellow;
effect.overlay = 1.0f;
Expand Down
9 changes: 8 additions & 1 deletion Assets/SEE/Game/Highlighter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ namespace SEE.Game
/// </summary>
internal static class Highlighter
{
/// <summary>
/// The default quality level for the glow effect (<see cref="HighlightEffect.glowQuality"/>.
/// </summary>
/// <remarks>The value <see cref="HighlightPlus.QualityLevel.Highest"/> does not work
/// in Highlight Plus version 21.0 anymore.</remarks>
public const HighlightPlus.QualityLevel DefaultGlowQuality = HighlightPlus.QualityLevel.Highest;

/// <summary>
/// Whether or not the <paramref name="gameObject"/> should be highlighted.
/// </summary>
Expand Down Expand Up @@ -38,7 +45,7 @@ public static HighlightEffect GetHighlightEffect(GameObject gameObject)
highlight.outlineColor = inverted;
highlight.SetGlowColor(Color.yellow);
highlight.glow = 2;
highlight.glowQuality = HighlightPlus.QualityLevel.Highest;
highlight.glowQuality = DefaultGlowQuality;
highlight.effectGroup = TargetOptions.OnlyThisObject;
highlight.glowDownsampling = 1;
highlight.hitFxColor = inverted;
Expand Down

0 comments on commit 013baf8

Please sign in to comment.