Front facing (#1904)

* Added BGFX_STATE_FRONT_CCW to defines.h and implemented initial usage only in renderer_d3d11.cpp.

* set front facing for d3d12, gl metal and vulkan

* front facing method Metal

* tabs

* removed tab
idl updated
This commit is contained in:
Cedric Guillemet
2019-10-26 05:07:05 +02:00
committed by Бранимир Караџић
parent 8ab1286a92
commit 6a883a33fd
8 changed files with 29 additions and 4 deletions

View File

@@ -3074,7 +3074,7 @@ VK_IMPORT_DEVICE
: VK_POLYGON_MODE_FILL
;
_desc.cullMode = s_cullMode[cull];
_desc.frontFace = VK_FRONT_FACE_CLOCKWISE;
_desc.frontFace = (_state&BGFX_STATE_FRONT_CCW) ? VK_FRONT_FACE_COUNTER_CLOCKWISE : VK_FRONT_FACE_CLOCKWISE;
_desc.depthBiasEnable = VK_FALSE;
_desc.depthBiasConstantFactor = 0.0f;
_desc.depthBiasClamp = 0.0f;