D3D11: Fix fog in software transform.

This commit is contained in:
Unknown W. Brackets 2021-10-30 17:32:15 -07:00
parent e688bb2cdf
commit b5a2afef76

View file

@ -773,6 +773,9 @@ bool GenerateVertexShader(const VShaderID &id, char *buffer, const ShaderLanguag
} else { } else {
WRITE(p, " vec4 position = In.position;\n"); WRITE(p, " vec4 position = In.position;\n");
} }
if (!useHWTransform && enableFog) {
WRITE(p, " float fog = In.fog;\n");
}
if (enableBones) { if (enableBones) {
WRITE(p, "%s", boneWeightAttrInitHLSL[numBoneWeights]); WRITE(p, "%s", boneWeightAttrInitHLSL[numBoneWeights]);
} }