Skip to content

Instantly share code, notes, and snippets.

View morpheus-solutions's full-sized avatar

Erik Hoven morpheus-solutions

  • Morpheus Solutions
View GitHub Profile
@morpheus-solutions
morpheus-solutions / CloudMap.cs
Last active January 9, 2024 05:37
Cloudmap for use on Terrains and using the Expanse Creative sky. Assign script under your terrain, create your particle system and assign to the script.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CloudMap : MonoBehaviour
{
private Terrain m_terrain;
[Tooltip("The Global particle System for rain/snow on the terrain according to the cloud map")]
public ParticleSystem m_globalParticles;
[Tooltip("Lower values will emit from denser clouds")]