scripts
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityStandardAssets.ImageEffects
|
||||
{
|
||||
// Token: 0x02000072 RID: 114
|
||||
[ExecuteInEditMode]
|
||||
[AddComponentMenu("Image Effects/Color Adjustments/Grayscale")]
|
||||
public class Grayscale : ImageEffectBase
|
||||
{
|
||||
// Token: 0x06000140 RID: 320 RVA: 0x0000E76D File Offset: 0x0000CB6D
|
||||
private void OnRenderImage(RenderTexture source, RenderTexture destination)
|
||||
{
|
||||
base.material.SetTexture("_RampTex", this.textureRamp);
|
||||
base.material.SetFloat("_RampOffset", this.rampOffset);
|
||||
Graphics.Blit(source, destination, base.material);
|
||||
}
|
||||
|
||||
// Token: 0x040002CE RID: 718
|
||||
public Texture textureRamp;
|
||||
|
||||
// Token: 0x040002CF RID: 719
|
||||
[Range(-1f, 1f)]
|
||||
public float rampOffset;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user