Skip to content

Instantly share code, notes, and snippets.

@MattGen
MattGen / PlaceTreeShadowCasters_LOD.cs
Last active November 2, 2017 18:35 — forked from rmalecki/PlaceTreeShadowCasters.cs
Unity 5: Create stand-in geometry for Terrain trees to bake correct lightmaps
using UnityEngine;
using UnityEngine.Rendering;
using UnityEditor;
public class PlaceTreeShadowCasters
{
[@MenuItem ("Terrain/Place Tree Shadow Casters")]
static void Run()
{