Aetheria/Assets/Plugins/Celestial Body/Scripts/Shading/TestShading.cs

18 lines
612 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu (menuName = "Celestial Body/Shading/Test")]
public class TestShading : CelestialBodyShading {
public Color colorA = Color.black;
public Color colorB = Color.white;
public Vector2 remapMinMax = new Vector2 (0, 1);
public override void SetTerrainProperties (Material material, Vector2 heightMinMax, float bodyScale) {
material.SetColor ("_ColorA", colorA);
material.SetColor ("_ColorB", colorB);
material.SetVector ("heightMinMax", heightMinMax);
material.SetVector ("remapMinMax", remapMinMax);
}
}