31 lines
815 B
HLSL
31 lines
815 B
HLSL
#if (SHADERPASS != SHADERPASS_CONSTANT)
|
|
#error SHADERPASS_is_not_correctly_define
|
|
#endif
|
|
|
|
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/ShaderPass/VertMesh.hlsl"
|
|
|
|
PackedVaryingsType Vert(AttributesMesh inputMesh)
|
|
{
|
|
VaryingsType varyingsType;
|
|
varyingsType.vmesh = VertMesh(inputMesh);
|
|
return PackVaryingsType(varyingsType);
|
|
}
|
|
|
|
#ifdef TESSELLATION_ON
|
|
|
|
PackedVaryingsToPS VertTesselation(VaryingsToDS input)
|
|
{
|
|
VaryingsToPS output;
|
|
output.vmesh = VertMeshTesselation(input.vmesh);
|
|
return PackVaryingsToPS(output);
|
|
}
|
|
|
|
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/ShaderPass/TessellationShare.hlsl"
|
|
|
|
#endif // TESSELLATION_ON
|
|
|
|
void Frag(out float4 outColor : SV_Target0)
|
|
{
|
|
outColor = float4(1.0, 1.0, 1.0, 1.0);
|
|
}
|