Files
BABA_YAGA/Assets/Third Parties/Opsive/UltimateCharacterController/Demo/Shaders/Emissive.shader
Scove 3e39117acc Consolidate third-party plugins into Assets/Plugins
Move and consolidate many third-party plugin files and metadata from various locations (notably Assets/Third Parties/Plugins 1 and scattered Opsive/Photon folders) into a unified Assets/Plugins directory. Includes DOTween, PrimeTween, Native/BackroomsNoise, Sirenix/Odin Inspector, and Opsive UltimateCharacterController/shared libs, plus updates to several .meta files and removal of obsolete installer/legacy files. This standardizes plugin layout and cleans up duplicate/obsolete assets.
2026-06-16 18:41:44 +07:00

42 lines
1.2 KiB
Plaintext

// Surface shader that will display an overlay texture.
Shader "Ultimate Character Controller/Demo/Emissive" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Emissive (RGB)", 2D) = "white" {}
[HDR]_EmissiveColor ("Emissive Color", Color) = (1,1,1,1)
_EmissiveSpeed("Emissive Speed", Float) = 0.0
}
SubShader {
Tags { "Queue" = "Geometry" "RenderType" = "Opaque" }
LOD 200
CGPROGRAM
// Physically based Standard lighting model, and enable shadows on all light types
#pragma surface surf Standard fullforwardshadows
// Use shader model 3.0 target, to get nicer looking lighting
#pragma target 3.0
sampler2D _MainTex;
struct Input {
float2 uv_MainTex;
};
fixed4 _Color;
fixed4 _EmissiveColor;
fixed _EmissiveSpeed;
UNITY_INSTANCING_BUFFER_START(Props)
UNITY_INSTANCING_BUFFER_END(Props)
void surf (Input IN, inout SurfaceOutputStandard o) {
o.Albedo = _Color.rgb;
float2 emissiveUV = float2(IN.uv_MainTex.x +( (_Time.y - floor(_Time.y)) * _EmissiveSpeed), IN.uv_MainTex.y);
fixed4 emissive = tex2D(_MainTex, emissiveUV) * _EmissiveColor;
o.Emission = emissive.rgb;
}
ENDCG
}
FallBack "Diffuse"
}