您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
34 行
778 B
34 行
778 B
Shader "Unlit/Blocker"
|
|
{
|
|
Properties
|
|
{
|
|
_MainTex ("Texture", 2D) = "white" {}
|
|
}
|
|
SubShader
|
|
{
|
|
Tags{"RenderType" = "Opaque" "RenderPipeline" = "Universal" "IgnoreProjector" = "True"}
|
|
LOD 100
|
|
|
|
Cull front
|
|
|
|
Pass
|
|
{
|
|
HLSLPROGRAM
|
|
#pragma vertex vert
|
|
#pragma fragment frag
|
|
|
|
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
|
|
|
|
float4 vert (float4 vertex : POSITION) : SV_POSITION
|
|
{
|
|
return TransformObjectToHClip(vertex.xyz);
|
|
}
|
|
|
|
half4 frag () : SV_Target
|
|
{
|
|
return half4(0,0,0,1);
|
|
}
|
|
ENDHLSL
|
|
}
|
|
}
|
|
}
|