23 lines
684 B
Plaintext
23 lines
684 B
Plaintext
Shader "Builtin Depth Only"
|
|
{
|
|
SubShader
|
|
{
|
|
Pass
|
|
{
|
|
Name "DepthOnly"
|
|
Tags { "LightMode" = "DepthOnly" }
|
|
Resources
|
|
{
|
|
PerObjectConstants (ConstantBuffer, 0, 0) [Semantic(PerObject)]
|
|
}
|
|
HLSLPROGRAM
|
|
#pragma vertex MainVS
|
|
#pragma fragment MainPS
|
|
#pragma backend D3D12 HLSL "depth-only.vs.hlsl" "depth-only.ps.hlsl" vs_5_0 ps_5_0
|
|
#pragma backend OpenGL GLSL "depth-only.vert.glsl" "depth-only.frag.glsl"
|
|
#pragma backend Vulkan GLSL "depth-only.vert.vk.glsl" "depth-only.frag.vk.glsl"
|
|
ENDHLSL
|
|
}
|
|
}
|
|
}
|