From c2d535c66196edee9ff9ae4b86ea8d36317846c0 Mon Sep 17 00:00:00 2001 From: MelekTaus Moribundus Date: Wed, 1 Jul 2026 12:22:21 +0200 Subject: [PATCH] Author the player X-ray glow color and fade timing Set _XRayColor (HDR orange, alpha 0 = off by default), pulse speed/strength on Player.mat and xrayFadeDuration on the Player prefab. --- Assets/Materials/Player.mat | 11 +++++++++-- Assets/Prefabs/Player.prefab | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Assets/Materials/Player.mat b/Assets/Materials/Player.mat index 1711c06..6a64801 100644 --- a/Assets/Materials/Player.mat +++ b/Assets/Materials/Player.mat @@ -11,9 +11,9 @@ Material: m_Shader: {fileID: 4800000, guid: 7b3dd5720b6152047b45788060d64904, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 - m_ValidKeywords: + m_ValidKeywords: [] + m_InvalidKeywords: - _FORMSOFTNESSMODE_UNIFORM - m_InvalidKeywords: [] m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 @@ -104,8 +104,12 @@ Material: - _Glossiness: 0 - _GlossyReflections: 0 - _HalfLambert: 0.5 + - _HalfLambertBrightness: 0 + - _HeightNormalIntensity: 1.4 + - _HeightNormalStrength: 8 - _Metallic: 0 - _OcclusionStrength: 1 + - _OcclusionThreshold: 0.2 - _Parallax: 0.005 - _QueueOffset: 0 - _ReceiveShadows: 1 @@ -118,11 +122,14 @@ Material: - _Surface: 0 - _WorkflowMode: 1 - _XRMotionVectorsPass: 1 + - _XRayPulseSpeed: 10 + - _XRayPulseStrength: 1 - _ZWrite: 1 m_Colors: - _BaseColor: {r: 1, g: 1, b: 1, a: 1} - _Color: {r: 1, g: 1, b: 1, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + - _XRayColor: {r: 18.379171, g: 0.18941379, b: 0, a: 0} m_BuildTextureStacks: [] m_AllowLocking: 1 diff --git a/Assets/Prefabs/Player.prefab b/Assets/Prefabs/Player.prefab index f637ad4..087b3f1 100644 --- a/Assets/Prefabs/Player.prefab +++ b/Assets/Prefabs/Player.prefab @@ -480,6 +480,7 @@ MonoBehaviour: sprayDotAlphaMin: 0.25 sprayDotAlphaMax: 1 maxUndoSteps: 20 + xrayFadeDuration: 0.15 useGpu: 1 paintAlbedo: 1 paintMetallicSmoothness: 0