diff options
author | chai <chaifix@163.com> | 2022-07-02 18:23:46 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-07-02 18:23:46 +0800 |
commit | f0f1d830651f3737030e258dc86b42a37baa1bca (patch) | |
tree | 386946c608ec02094c81253872e890615e0c3807 /JamHelper/Assets/JamUtils/Shaders | |
parent | e7e9156b0e4d180f8f9e291eb5ccfb08847e6269 (diff) |
* change directory
Diffstat (limited to 'JamHelper/Assets/JamUtils/Shaders')
-rw-r--r-- | JamHelper/Assets/JamUtils/Shaders/pure_color.shader | 61 | ||||
-rw-r--r-- | JamHelper/Assets/JamUtils/Shaders/pure_color.shader.meta | 10 |
2 files changed, 0 insertions, 71 deletions
diff --git a/JamHelper/Assets/JamUtils/Shaders/pure_color.shader b/JamHelper/Assets/JamUtils/Shaders/pure_color.shader deleted file mode 100644 index d0b1d4d..0000000 --- a/JamHelper/Assets/JamUtils/Shaders/pure_color.shader +++ /dev/null @@ -1,61 +0,0 @@ -Shader "JamTools/PureColor"
-{
- Properties
- {
- _MainTex ("Texture", 2D) = "white" {}
- _Color("Color", Color) = (1,1,1,1)
- }
- SubShader
- {
- Tags { "RenderType"="Opaque" }
- LOD 100
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
- // make fog work
- #pragma multi_compile_fog
-
- #include "UnityCG.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- UNITY_FOG_COORDS(1)
- float4 vertex : SV_POSITION;
- };
-
- sampler2D _MainTex;
- float4 _MainTex_ST;
-
- fixed4 _Color;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- UNITY_TRANSFER_FOG(o,o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- // sample the texture
- fixed4 col = tex2D(_MainTex, i.uv);
- // apply fog
- UNITY_APPLY_FOG(i.fogCoord, col);
- return _Color;
- }
- ENDCG
- }
- }
-}
diff --git a/JamHelper/Assets/JamUtils/Shaders/pure_color.shader.meta b/JamHelper/Assets/JamUtils/Shaders/pure_color.shader.meta deleted file mode 100644 index 8243625..0000000 --- a/JamHelper/Assets/JamUtils/Shaders/pure_color.shader.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 66cfb3573dab31d4192ab92e62b7d46b -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - preprocessorOverride: 0 - userData: - assetBundleName: - assetBundleVariant: |