Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
public class Bezir3 : MonoBehaviour {
public GameObject StartObject;
public GameObject StartControlObject;
public GameObject EndObject;
public GameObject EndControlObject;
Shader "Custom/NegaLinear" {
Properties{
_MainTex ("Texture", 2D) = "white" {}
_NegaOffs("NegaOffs",Range(-1,1))=1
}
SubShader {
Pass {
CGPROGRAM
#include "UnityCG.cginc"