Rotate custom skybox like Unity skybox
Hi!
I'm trying to do a custom skybox for 360 images wich has 2 textures with a crossfade and I need it to respond to Rotation value like the Unity Skybox. I just need the same slider but I´m not getting any luck, I'm complete new on shaders.
Here is the code I have until now
Shader "Custom/fundido" { Properties { _Blend ("Blend", Range (0, 1) ) = 0.0 _Rotation ("Rotation", Range(0, 360)) = 0 _BaseTexture ("Cubemap (HDR)", Cube) = "grey" {} _OverlayTexture ("Cubemap2 (HDR)", Cube) = "grey" {} } SubShader { Tags { "Queue"="Background" "RenderType"="Background" "PreviewType"="Skybox" } Pass { SetTexture[_BaseTexture] SetTexture[_OverlayTexture] { ConstantColor (0,0,0, [_Blend]) combine texture Lerp(constant) previous } } } }
The _Blend works perfect for the crossfade I just need to add the Rotation listener.
Thanks so much!!!
Your answer
Follow this Question
Related Questions
6 sided skybox Rotation?,6 sided skybox rotation shader? 0 Answers
How can I make this custom shader support shadows? 1 Answer
How to rotate quad towards light in shader? 0 Answers
Equivalent of blender holdout shader? 0 Answers
Materia Drag & Drop Bug 0 Answers