Blend Cubemap Skybox Shader to Panoramic Shader
I would like to blend from the cubemap skybox to 360 video skybox, then I have find on and have no luck how to do that, but I have found the shader to blend from 1 skybox to other one, but it can be used with cubemap and I cannot get my video works with the method described on unity doc. So, I tried create another shader and can get video plays, but video represent only clamped like cylinder not 360 one. Here is the shader I used.
Shader "Skybox/SkyboxToVideoBlend" {
Properties {
_Tint ("Tint Color", Color) = (.5, .5, .5, .5)
_Tint1 ("Tint Color 1Skybox", Color) = (.5, .5, .5, .5)
_Tint2 ("Tint Color 2Skybox", Color) = (.5, .5, .5, .5)
_Blend ("Blend", Range(0.0,1.0)) = 0.5
_1Tex("1Skybox",Cube) = ""
_MainTex ("Spherical (HDR)", 2D) = "grey" {}
}
SubShader {
Tags { "Queue" = "Background" "RenderType"="Background" "PreviewType"="Skybox" }
Cull Off ZWrite Off
Fog { Mode Off }
Lighting Off
Color [_Tint]
Pass{
SetTexture [_1Tex]{combine texture}
SetTexture [_MainTex]{constantColor(0,0,0,[_Blend]) combine texture lerp(constant) previous }
SetTexture [_MainTex]{ combine previous +- primary, previous * primary }
}
}
Fallback Off
}
Cause I did not know about shader, Could anyone tell me what I have to add to this shader to get the video be 360 one?
Comment