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

Commit

Permalink
Fix Unlit/Color not included in build
Browse files Browse the repository at this point in the history
  • Loading branch information
VIVE development area committed Jun 27, 2016
1 parent aeac833 commit f197c8a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file modified Assets/Scenes/main.unity
Binary file not shown.
3 changes: 2 additions & 1 deletion Assets/SteamVR/Extras/SteamVR_LaserPointer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

public class SteamVR_LaserPointer : MonoBehaviour
{
public Shader laserShader;
public Color color;
public float thickness = 0.002f;
public GameObject holder;
Expand Down Expand Up @@ -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<MeshRenderer>().material = newMaterial;
}
Expand Down
Binary file modified ProjectSettings/ProjectSettings.asset
Binary file not shown.

0 comments on commit f197c8a

Please sign in to comment.