This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
// Fixes wrong Skinned Mesh Renderer bounds occurring with Cloth component. | |
// Attach this to camera. | |
// | |
// Idea: Before camera determines culling, we override the automatically computed | |
// bounds with our own for all game objects with a Skinned Mesh Render in the present scene. | |
// In this example, we use the bounds of the undeformed mesh |