lcy
2025-01-02 c867ea92cce28ea0ceb312ef8e2f8e7e0888b1d6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld'
// Upgrade NOTE: replaced '_World2Object' with 'unity_WorldToObject'
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
 
Shader "Character/Character,Emission,Flow_Hero"
{
    Properties
    {
        _MainTex ("Main Texture", 2D) = "white" { }
        _ChanTex ("Add Texture", 2D) = "black" { }
        
        _FlowColor ("FlowColor", Color) = (1, 1, 1, 1)
        _FlowSpeed ("FlowSpeed", Range(0, 1)) = 0
        _FlowIntensity ("FlowIntensity", Range(0, 2)) = 0
        _FlowDirectionH ("FlowDirectionH", Range(-1, 1)) = 0
        _FlowDirectionV ("FlowDirectionV", Range(-1, 1)) = 0
        
        _SelfLuminousColor ("SelfLuminousColor", Color) = (1, 1, 1, 1)
        _SelfLuminousSpeed ("SelfLuminousSpeed", Range(0, 1)) = 0
        _SelfLuminousIntensity ("SelfLuminousIntensity", Range(0, 2)) = 0
        
        _SelfLuminousMin ("SelfLuminousMin", Range(0, 1)) = 0
        _SelfLuminousMax ("SelfLuminousMax", Range(0, 1)) = 1
        
        _Hit ("FlashWhite", Range(0, 1)) = 0
        
        _XRayColor ("XRay Color", Color) = (1, 1, 1, 1)
    }
    
    Subshader
    {
        LOD 350
        Tags { "Queue" = "Geometry" "IgnoreProjector" = "True" "LightMode" = "ForwardBase" }
        
        UsePass "Character/Basic/XRAYPASSHERO"
        UsePass "Character/Basic/EMISSION_FLOW"
    }
    
    Subshader
    {
        LOD 300
        Tags { "Queue" = "Geometry" "IgnoreProjector" = "True" "LightMode" = "ForwardBase" }
        UsePass "Character/Basic/EMISSION_FLOW"
    }
    
    FallBack "Diffuse"
}