This file contains hidden or 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; | |
| public class ModelAnimation : MonoBehaviour { | |
| public bool isAnimated = false; | |
| public bool isRotating = false; | |
| public bool isFloating = false; | |
| public bool isScaling = false; |
This file contains hidden or 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
| Shader "DepthMask" { | |
| SubShader { | |
| // Render the mask after regular geometry, but before masked geometry and | |
| // transparent things. | |
| Tags {"Queue" = "Geometry-10" } | |
| // Turn off lighting, because it's expensive and the thing is supposed to be | |
| // invisible anyway. |
This file contains hidden or 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
| // A Simple Script to change the materials on a game object and all the nested children | |
| // Author: Ashkan Ashtiani | |
| // Github: https://github.com/3dln/material_changer | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| namespace TDLN | |
| { | |
| public class MaterialChanger : MonoBehaviour |
This file contains hidden or 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
| // A simple Unity C# script for orbital movement around a target gameobject | |
| // Author: Ashkan Ashtiani | |
| // Gist on Github: https://gist.github.com/3dln/c16d000b174f7ccf6df9a1cb0cef7f80 | |
| using System; | |
| using UnityEngine; | |
| namespace TDLN.CameraControllers | |
| { | |
| public class CameraOrbit : MonoBehaviour |
NewerOlder