|
|
|
|
|
|
Shader "HDRenderPipeline/Decal" |
|
|
|
{ |
|
|
|
Properties |
|
|
|
{ |
|
|
|
{ |
|
|
|
_MaskMap("MaskMap", 2D) = "white" {} |
|
|
|
_MaskMap("MaskMap", 2D) = "white" {} |
|
|
|
_DecalBlend("_DecalBlend", Range(0.0, 1.0)) = 0.5 |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------- |
|
|
|
// Define |
|
|
|
//------------------------------------------------------------------------------------- |
|
|
|
#define UNITY_MATERIAL_DECAL |
|
|
|
|
|
|
|
#define UNITY_MATERIAL_DECAL |
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------- |
|
|
|
// Include |
|
|
|
//------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
|
SubShader |
|
|
|
{ |
|
|
|
Tags{ "RenderPipeline" = "HDRenderPipeline"} |
|
|
|
|
|
|
|
Pass |
|
|
|
{ |
|
|
|
Name "DBuffer" // Name is not used |
|
|
|
|
|
|
#define SHADERPASS SHADERPASS_DBUFFER |
|
|
|
#include "../../ShaderVariables.hlsl" |
|
|
|
#include "Decal.hlsl" |
|
|
|
#include "ShaderPass/DecalSharePass.hlsl" |
|
|
|
#include "ShaderPass/DecalSharePass.hlsl" |
|
|
|
#include "DecalData.hlsl" |
|
|
|
#include "../../ShaderPass/ShaderPassDBuffer.hlsl" |
|
|
|
|
|
|
|