summaryrefslogtreecommitdiffstats
path: root/Shaders/cloud/cloud.shader
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-11-19 17:55:22 -0800
committeryum <yum.food.vr@gmail.com>2023-11-19 17:55:22 -0800
commit8427cb479e6ea389e92bac7f9bc73294038059d4 (patch)
treea371254dbd5600784e39264c16960ddcc6f13443 /Shaders/cloud/cloud.shader
parentdb026d39d481d22155afc1ac9eda0b4496c9f7c2 (diff)
Check in cloud shaderHEADmaster
Still a WIP, kinda looks like shit
Diffstat (limited to 'Shaders/cloud/cloud.shader')
-rw-r--r--Shaders/cloud/cloud.shader72
1 files changed, 72 insertions, 0 deletions
diff --git a/Shaders/cloud/cloud.shader b/Shaders/cloud/cloud.shader
new file mode 100644
index 0000000..95de6de
--- /dev/null
+++ b/Shaders/cloud/cloud.shader
@@ -0,0 +1,72 @@
+Shader "yum_food/cloud"
+{
+ Properties
+ {
+ _Ball_Height("Ball height", float) = 0.15
+ _Ball_Scale("Ball scale", float) = 1.0
+ _Cloud_Y_Off("cloud Y offset", float) = -.3
+ _Cloud_Opacity("cloud opacity", float) = 0.25
+ _Cloud_W("cloud FBM W=", float) = 0.35
+ _Cloud_Scale("cloud scale", float) = 2
+ _Sphere_Scale("Sphere scale", float) = 1
+ _Global_Scale("Global scale", float) = 1
+ _Orientation("Orientation (axis and angle in radians)", Vector) = (1, 0, 0, 0)
+ _Offset("Offset (meters)", Vector) = (0, 0, 0, 0)
+
+ [MaterialToggle] _Enable_Matcap("Enable matcap", float) = 1
+ _Matcap("Matcap", 2D) = "black" {}
+ _Matcap_Str("Matcap strength", float) = 1.0
+ _Matcap_Mode("Matcap mode: 1 add, 2 mul, 3 replace, 4 sub", Range(1,4)) = 1
+
+ [MaterialToggle] _Enable_Custom_Cubemap("Enable custom cubemap", float) = 0
+ _Custom_Cubemap("Custom cubemap", Cube) = "" {}
+ }
+ SubShader
+ {
+ Pass {
+ Tags {
+ "RenderType"="Opaque"
+ "Queue"="AlphaTest+499"
+ "LightMode" = "ForwardBase"
+ }
+ Blend SrcAlpha OneMinusSrcAlpha
+ Cull Back
+ ZTest LEqual
+
+ CGPROGRAM
+ #pragma target 5.0
+
+ #pragma multi_compile _ VERTEXLIGHT_ON
+
+ #pragma vertex vert
+ #pragma fragment frag
+
+ #define FORWARD_BASE_PASS
+
+ #include "cloud_lighting.cginc"
+ ENDCG
+ }
+ Pass {
+ Tags {
+ "RenderType" = "Opaque"
+ "LightMode" = "ForwardAdd"
+ "Queue"="AlphaTest+499"
+ }
+ Blend One One
+ Cull Back
+ ZTest LEqual
+
+ CGPROGRAM
+ #pragma target 5.0
+
+ #pragma multi_compile_fwdadd
+
+ #pragma vertex vert
+ #pragma fragment frag
+
+ #include "cloud_lighting.cginc"
+ ENDCG
+ }
+ }
+ //CustomEditor "TaSTTShaderGUI"
+}