modified maps

modified maps
This commit is contained in:
Данил Олейников
2024-08-02 11:15:51 +03:00
parent 5c89ad04d5
commit 911ef42ce8
741 changed files with 35494 additions and 1222 deletions

View File

@ -0,0 +1,21 @@
using System;
using UnityEngine;
namespace UnityStandardAssets.ImageEffects
{
[ExecuteInEditMode]
[AddComponentMenu("Image Effects/Color Adjustments/Grayscale")]
public class Grayscale : ImageEffectBase {
public Texture textureRamp;
[Range(-1.0f,1.0f)]
public float rampOffset;
// Called by camera to apply image effect
void OnRenderImage (RenderTexture source, RenderTexture destination) {
material.SetTexture("_RampTex", textureRamp);
material.SetFloat("_RampOffset", rampOffset);
Graphics.Blit (source, destination, material);
}
}
}