This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
@@ -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;
}
}