Aetheria/Assets/Plugins/Celestial Body/Scripts/Shading/TestShading.cs
Reinier Vens 53a91351b7 Procedural Planets
Integrated Sebastian Lague's Planet Generator
Created Tour function in SectorRenderer which makes the camera follow each terrestrial planet in turn
2020-12-05 23:43:02 +00:00

18 lines
No EOL
612 B
C#

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);
}
}