Skip to content
This repository was archived by the owner on May 25, 2018. It is now read-only.

Commit f197c8a

Browse files
author
VIVE development area
committed
Fix Unlit/Color not included in build
1 parent aeac833 commit f197c8a

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

Assets/Scenes/main.unity

104 Bytes
Binary file not shown.

Assets/SteamVR/Extras/SteamVR_LaserPointer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
public class SteamVR_LaserPointer : MonoBehaviour
55
{
6+
public Shader laserShader;
67
public Color color;
78
public float thickness = 0.002f;
89
public GameObject holder;
@@ -38,7 +39,7 @@ void Start ()
3839
Object.Destroy(collider);
3940
}
4041
}
41-
Material newMaterial = new Material(Shader.Find("Unlit/Color"));
42+
Material newMaterial = new Material(laserShader);
4243
newMaterial.SetColor("_Color", color);
4344
pointer.GetComponent<MeshRenderer>().material = newMaterial;
4445
}
28 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)