vulkan depth bias fix #72

This commit is contained in:
Turanszki Janos
2020-02-03 20:14:45 +00:00
parent 2edc017a0c
commit 2c236f2cfb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4384,7 +4384,7 @@ namespace wiGraphics
}
rasterizer.frontFace = desc.FrontCounterClockwise ? VK_FRONT_FACE_COUNTER_CLOCKWISE : VK_FRONT_FACE_CLOCKWISE;
rasterizer.depthBiasEnable = desc.DepthBias != 0;
rasterizer.depthBiasEnable = desc.DepthBias != 0 || desc.SlopeScaledDepthBias != 0;
rasterizer.depthBiasConstantFactor = static_cast<float>(desc.DepthBias);
rasterizer.depthBiasClamp = desc.DepthBiasClamp;
rasterizer.depthBiasSlopeFactor = desc.SlopeScaledDepthBias;
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 36;
// minor bug fixes, alterations, refactors, updates
const int revision = 51;
const int revision = 52;
long GetVersion()