Skip to content

Instantly share code, notes, and snippets.

@naojitaniguchi
naojitaniguchi / ScrollTexture.cs
Created October 20, 2015 10:18
Scroll texture in Unity
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 ;
@naojitaniguchi
naojitaniguchi / StandardDoubleSide.shader
Created October 8, 2015 02:54
Standerd Double sided shader for Unity
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