2024-07-30 05:32:11 +00:00
|
|
|
{% extends "DecalBase.shader.template" %}
|
|
|
|
{% block shader_name %}Standard{% endblock %}
|
|
|
|
|
|
|
|
{% block properties %}
|
2020-07-03 02:40:00 +00:00
|
|
|
[Header(Decal)]
|
2020-07-01 08:28:45 +00:00
|
|
|
_Decal("Decal Texture", 2D) = "gray" {}
|
2020-07-03 02:40:00 +00:00
|
|
|
[Toggle(DECAL_SDF_ALPHA)] _Decal_SDF_Alpha ("SDF in Alpha", int) = 0
|
|
|
|
|
|
|
|
[Header(Normal)]
|
|
|
|
[Toggle(DECAL_BASE_NORMAL)] _BaseNormal ("Use Base Normal", int) = 0
|
|
|
|
[Toggle(DECAL_BUMPMAP)] _Decal_BumpMap ("Has BumpMap", int) = 0
|
2020-07-01 08:28:45 +00:00
|
|
|
_BumpMap("Bump Map", 2D) = "bump" {}
|
|
|
|
_EdgeWearStrength("Edge Wear Strength", Range(0,500)) = 100
|
|
|
|
_EdgeWearOffset("Edge Wear Offset", Range(0,1)) = 0.1
|
2024-07-24 04:54:39 +00:00
|
|
|
|
2020-07-03 02:40:00 +00:00
|
|
|
[Header(Specularity)]
|
|
|
|
[Toggle(DECAL_SPECMAP)] _Decal_SpecMap ("Has SpecMap", int) = 0
|
2024-07-30 05:32:11 +00:00
|
|
|
_SpecMap ("Specular Map", 2D) = "black" {}
|
2020-07-03 02:40:00 +00:00
|
|
|
_SpecColor ("_SpecColor", Color) = (0.25, 0.25, 0.25, 1)
|
|
|
|
_Shininess ("Shininess", Range (0.03, 10)) = 0.3
|
|
|
|
|
|
|
|
[Header(Emissive)]
|
|
|
|
[Toggle(DECAL_EMISSIVE)] _Decal_Emissive ("Has Emissive", int) = 0
|
|
|
|
_Emissive("_Emissive", 2D) = "black" {}
|
|
|
|
_EmissiveColor("_EmissiveColor", Color) = (0,0,0,1)
|
2024-07-30 05:32:11 +00:00
|
|
|
{% endblock %}
|
2020-07-01 08:28:45 +00:00
|
|
|
|
2024-07-30 05:32:11 +00:00
|
|
|
{% block body %}
|
2024-07-31 05:40:23 +00:00
|
|
|
#pragma multi_compile_local __ DECAL_BASE_NORMAL DECAL_BUMPMAP
|
2020-07-01 08:28:45 +00:00
|
|
|
#pragma multi_compile_local __ DECAL_SPECMAP
|
|
|
|
#pragma multi_compile_local __ DECAL_EMISSIVE
|
|
|
|
#pragma multi_compile_local __ DECAL_SDF_ALPHA
|
|
|
|
|
|
|
|
#include "StandardDecal.cginc"
|
2024-07-30 05:32:11 +00:00
|
|
|
{% endblock %}
|
2024-06-25 06:07:44 +00:00
|
|
|
|
2024-07-18 05:48:58 +00:00
|
|
|
|
2024-07-30 05:32:11 +00:00
|
|
|
{% block pragmas_deferred_prepass %}
|
|
|
|
#pragma skip_variants DECAL_SPECMAP DECAL_EMISSIVE DECAL_BUMPMAP
|
|
|
|
{% endblock %}
|