1
0
Fork 0
This commit is contained in:
Florian RICHER (MrDev023) 2019-01-27 14:54:55 +01:00
parent 37252a4edc
commit 19ab6f65e3
258 changed files with 406592 additions and 0 deletions

View file

@ -0,0 +1,17 @@
using UnityEngine;
public class CameraScript : MonoBehaviour
{
public Material material;
public FearLevel fear;
void OnRenderImage(RenderTexture source, RenderTexture destination)
{
material.SetFloat("_Fear", fear.GetFearLevel());
// Copy the source Render Texture to the destination,
// applying the material along the way.
Graphics.Blit(source, destination, material);
}
}