mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-04 09:09:09 +00:00
feat(d3d): add GxRs_Lighting case for CGxDeviceD3d::IRsSendToHw
This commit is contained in:
parent
5fb8536fce
commit
6191acb291
1 changed files with 11 additions and 0 deletions
|
|
@ -1107,6 +1107,17 @@ void CGxDeviceD3d::IRsSendToHw(EGxRenderState which) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case GxRs_Lighting: {
|
||||||
|
int32_t lightingEnable = 0;
|
||||||
|
|
||||||
|
if (this->MasterEnable(GxMasterEnable_Lighting)) {
|
||||||
|
lightingEnable = static_cast<int32_t>(state->m_value);
|
||||||
|
}
|
||||||
|
|
||||||
|
this->m_d3dDevice->SetRenderState(D3DRS_LIGHTING, lightingEnable);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case GxRs_DepthTest:
|
case GxRs_DepthTest:
|
||||||
case GxRs_DepthFunc: {
|
case GxRs_DepthFunc: {
|
||||||
auto depthTest = static_cast<uint32_t>((&this->m_appRenderStates[GxRs_DepthTest])->m_value);
|
auto depthTest = static_cast<uint32_t>((&this->m_appRenderStates[GxRs_DepthTest])->m_value);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue