Improved shadow maps

This commit is contained in:
MontyTRC89 2020-01-03 20:40:52 +01:00
parent 51ae05d120
commit e37dc2c69c
3 changed files with 4 additions and 6 deletions

View file

@ -105,8 +105,7 @@ float4 PS(PixelShaderInput input) : SV_TARGET
// If clip space z value greater than shadow map value then pixel is in shadow
if (shadowMapDepth < realDepth)
return float4(0, 0, 0, 1);
//doLights = false;
return float4(output.xyz * colorMul.xyz / 2.0f, 1.0f);
}
}