Enable face culling
This commit is contained in:
parent
69b48f8123
commit
6b0e4345a2
2 changed files with 2 additions and 2 deletions
|
|
@ -639,7 +639,7 @@ int VulkanRenderDevice::GetLevelMeshPipelineID(const MeshApplyData& applyData, c
|
|||
pipelineKey.StencilTest = false; // mStencilTest;
|
||||
pipelineKey.StencilPassOp = 0; // mStencilOp;
|
||||
pipelineKey.ColorMask = 15; // mColorMask;
|
||||
pipelineKey.CullMode = 0; // mCullMode;
|
||||
pipelineKey.CullMode = Cull_CW; // mCullMode;
|
||||
pipelineKey.NumTextureLayers = material.mMaterial ? material.mMaterial->NumLayers() : 0;
|
||||
pipelineKey.NumTextureLayers = max(pipelineKey.NumTextureLayers, SHADER_MIN_REQUIRED_TEXTURE_LAYERS);// Always force minimum 8 textures as the shader requires it
|
||||
if (applyData.SpecialEffect > EFF_NONE)
|
||||
|
|
|
|||
|
|
@ -264,7 +264,7 @@ void DoomLevelSubmesh::CreateStaticSurfaces(FLevelLocals& doomMap)
|
|||
|
||||
for (int i = 0, end = sub->numlines; i < end; i++)
|
||||
{
|
||||
auto& vt = sub->firstline[i].v1;
|
||||
auto& vt = sub->firstline[end - 1 - i].v1;
|
||||
|
||||
FFlatVertex ffv;
|
||||
ffv.x = (float)vt->fX();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue