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

@@ -2557,8 +2557,8 @@ namespace bgfx { namespace d3d12
? D3D12_FILL_MODE_WIREFRAME
: D3D12_FILL_MODE_SOLID
;
_desc.CullMode = s_cullMode[cull];
_desc.FrontCounterClockwise = false;
_desc.CullMode = s_cullMode[cull];
_desc.FrontCounterClockwise = !!(_state&BGFX_STATE_FRONT_CCW);;
_desc.DepthBias = 0;
_desc.DepthBiasClamp = 0.0f;
_desc.SlopeScaledDepthBias = 0.0f;