Revert Depth Offset (wrong impl, can be done later)

This commit is contained in:
Wojtek Figat
2023-01-31 14:22:37 +01:00
parent c46ea56af2
commit 0709288eac
12 changed files with 9 additions and 67 deletions

View File

@@ -22,9 +22,6 @@ void PS_GBuffer(
#if USE_GBUFFER_CUSTOM_DATA
,out float4 RT3 : SV_Target4
#endif
#endif
#if USE_DEPTH_OFFSET
,out float Depth : SV_Depth
#endif
)
{
@@ -39,11 +36,6 @@ void PS_GBuffer(
MaterialInput materialInput = GetMaterialInput(input);
Material material = GetMaterialPS(materialInput);
// Depth offset
#if USE_DEPTH_OFFSET
Depth = (materialInput.SvPosition.z * materialInput.SvPosition.w) / (materialInput.SvPosition.w + material.DepthOffset);
#endif
// Masking
#if MATERIAL_MASKED
clip(material.Mask - MATERIAL_MASK_THRESHOLD);