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
// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt) | |
// Edited from Unity built-in, copied rotation function from here: http://www.neilmendoza.com/glsl-rotation-about-an-arbitrary-axis/ | |
Shader "Skybox/6 Sided - Arbitrary Rotation" { | |
Properties { | |
_Tint ("Tint Color", Color) = (.5, .5, .5, .5) | |
[Gamma] _Exposure ("Exposure", Range(0, 8)) = 1.0 | |
_Rotation ("Rotation", Range(0, 360)) = 0 | |
_RotationAxis("Rotation axis", Vector) = (0, 1, 0) | |
[NoScaleOffset] _FrontTex ("Front [+Z] (HDR)", 2D) = "grey" {} | |
[NoScaleOffset] _BackTex ("Back [-Z] (HDR)", 2D) = "grey" {} |