我们创建了 Fontainebleau 演示来说明摄影photogrammetry流程和 LayeredLit 着色器的使用。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

40 行
818 B

Shader "HDRenderPipeline/LensFlare (HDRP Additive)"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_OccludedSizeScale("Occluded Size scale", Float) = 1.0
}
SubShader
{
Pass
{
Name "ForwardUnlit"
Tags{ "LightMode" = "Forward" "RenderQueue" = "Transparent" }
Blend One One
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
}
}
}