Integrated Sebastian Lague's Planet Generator Created Tour function in SectorRenderer which makes the camera follow each terrestrial planet in turn
18 lines
No EOL
612 B
C#
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);
|
|
}
|
|
} |