您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
41 行
853 B
41 行
853 B
Shader "HDRenderPipeline/LensFlare (HDRP Lerp)"
|
|
{
|
|
Properties
|
|
{
|
|
_MainTex ("Texture", 2D) = "white" {}
|
|
_OccludedSizeScale("Occluded Size scale", Float) = 1.0
|
|
}
|
|
SubShader
|
|
{
|
|
Pass
|
|
{
|
|
Name "ForwardUnlit"
|
|
Tags{ "LightMode" = "Forward" "RenderQueue" = "Transparent" }
|
|
|
|
Blend SrcAlpha OneMinusSrcAlpha
|
|
ColorMask RGB
|
|
ZWrite Off
|
|
Cull Off
|
|
ZTest Always
|
|
|
|
HLSLPROGRAM
|
|
|
|
#pragma target 5.0
|
|
#pragma vertex vert
|
|
#pragma fragment frag
|
|
|
|
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl"
|
|
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/ShaderLibrary/ShaderVariables.hlsl"
|
|
#include "LensFlareHDRPCommon.hlsl"
|
|
|
|
float4 frag (v2f i) : SV_Target
|
|
{
|
|
float4 col = tex2D(_MainTex, i.uv);
|
|
|
|
return col * i.color;
|
|
}
|
|
|
|
ENDHLSL
|
|
}
|
|
}
|
|
}
|