You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
449 B
C#
26 lines
449 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
|
|
namespace Suimono.Core
|
|
{
|
|
public class SuimonoDepth : MonoBehaviour {
|
|
|
|
|
|
//PUBLIC VARIABLES
|
|
public Shader useShader;
|
|
|
|
//PRIVATE VARIABLES
|
|
private Material useMat;
|
|
|
|
void Start () {
|
|
//setup material
|
|
useMat = new Material(useShader);
|
|
}
|
|
|
|
void OnRenderImage (RenderTexture source, RenderTexture destination){
|
|
if (useMat != null) Graphics.Blit(source,destination,useMat);
|
|
}
|
|
|
|
}
|
|
} |