TimelineImprovements
This commit is contained in:
1 parent
e312131725
commit
f927552adc
2211 files changed
+115416
-540944
No files matched your search
@@ -19,12 +19,20 @@ Shader "MK/Toon/Gradient Skybox"
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#if UNITY_VERSION >= 60070000
|
||||
#pragma target 3.5
|
||||
#pragma multi_compile_fragment _ PRE_EXPOSE_SKY
|
||||
#endif
|
||||
#pragma fragmentoption ARB_precision_hint_fastest
|
||||
|
||||
#define PI 3.14159h
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
#if UNITY_VERSION >= 60070000 && defined(PRE_EXPOSE_SKY)
|
||||
Texture2D<float2> _ExposureMultiplierTexture;
|
||||
#endif
|
||||
|
||||
uniform half3 _Color0;
|
||||
uniform half3 _Color1;
|
||||
uniform float3 _Rotation;
|
||||
@@ -73,9 +81,15 @@ Shader "MK/Toon/Gradient Skybox"
|
||||
|
||||
half4 frag(VertexOutput vertexOutput) : SV_Target
|
||||
{
|
||||
#if UNITY_VERSION >= 60070000
|
||||
UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(vertexOutput);
|
||||
#endif
|
||||
half i = dot(normalize(vertexOutput.uv), vertexOutput.direction) * 0.5 + 0.5;
|
||||
half3 color = lerp(_Color0, _Color1, pow(smoothstep(0.0, 1.0, i), _Exponent)) * _Intensity;
|
||||
|
||||
#if UNITY_VERSION >= 60070000 && defined(PRE_EXPOSE_SKY)
|
||||
color = min(float3(color) * _ExposureMultiplierTexture.Load(int3(0, 0, 0)).r, 65504.0);
|
||||
#endif
|
||||
return half4(color.rgb, 1);
|
||||
}
|
||||
ENDCG
|
||||
|
||||
Reference in new issue
Block a user