Skip to content

Instantly share code, notes, and snippets.

View derricksimpson's full-sized avatar

Derrick Simpson derricksimpson

  • Derrick Simpson
View GitHub Profile
@derricksimpson
derricksimpson / PlaceTreeShadowCasters_LOD.cs
Last active May 5, 2017 00:45 — forked from MattGen/PlaceTreeShadowCasters_LOD.cs
Unity 5: Create stand-in geometry for Terrain trees to bake correct lightmaps
using UnityEngine;
using UnityEngine.Rendering;
using UnityEditor;
/*
Finds tree instances within terrain data and create's real GameObjects within the scene. (used to bake shadows).
Steps: