This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using System.Collections; | |
| public class ScrollTexture : MonoBehaviour { | |
| public float scrollSpeed = 0.0004f ; | |
| private Mesh mesh ; | |
| // Use this for initialization | |
| void Start () { | |
| mesh = GetComponent<MeshFilter>().mesh ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "StandardDoubleSide" | |
| { | |
| Properties | |
| { | |
| _Color("Color", Color) = (1,1,1,1) | |
| _MainTex("Albedo", 2D) = "white" {} | |
| _Cutoff("Alpha Cutoff", Range(0.0, 1.0)) = 0.5 | |
| _Glossiness("Smoothness", Range(0.0, 1.0)) = 0.5 |