mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 22:03:12 +01:00
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:
committed by
Бранимир Караџић
parent
8ab1286a92
commit
6a883a33fd
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user