Skip to content
Snippets Groups Projects
Commit 6c8b23a2 authored by Adam Elfawal's avatar Adam Elfawal
Browse files

Privated a variable to look nicer in editor

parent 655aa6fe
No related branches found
No related tags found
No related merge requests found
......@@ -4,13 +4,13 @@
public class Dithering : MonoBehaviour
{
public Material mat;
public bool generateMaterial = false;
private Material mat;
public bool generateBasicMaterial = false;
// Start is called before the first frame update
void Start()
{
mat = gameObject.GetComponent<Renderer>().material;
if (generateMaterial)
if (generateBasicMaterial)
{
Shader shader = Resources.Load<Shader>("DitherBasic");
Color color = mat.color;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment