diff --git a/Assets/Scenes/main.unity b/Assets/Scenes/main.unity index 7024da2..92c39a3 100644 Binary files a/Assets/Scenes/main.unity and b/Assets/Scenes/main.unity differ diff --git a/Assets/SteamVR/Extras/SteamVR_LaserPointer.cs b/Assets/SteamVR/Extras/SteamVR_LaserPointer.cs index abfdb73..e503f4a 100644 --- a/Assets/SteamVR/Extras/SteamVR_LaserPointer.cs +++ b/Assets/SteamVR/Extras/SteamVR_LaserPointer.cs @@ -3,6 +3,7 @@ public class SteamVR_LaserPointer : MonoBehaviour { + public Shader laserShader; public Color color; public float thickness = 0.002f; public GameObject holder; @@ -38,7 +39,7 @@ void Start () Object.Destroy(collider); } } - Material newMaterial = new Material(Shader.Find("Unlit/Color")); + Material newMaterial = new Material(laserShader); newMaterial.SetColor("_Color", color); pointer.GetComponent().material = newMaterial; } diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 8cd2dc6..6a18ffe 100644 Binary files a/ProjectSettings/ProjectSettings.asset and b/ProjectSettings/ProjectSettings.asset differ