- fixed: The scale vector for detail maps was not passed to the shader.

This commit is contained in:
Christoph Oelckers 2020-06-11 12:41:50 +02:00
parent b0964101a5
commit 646457eb03

View file

@ -563,6 +563,8 @@ public:
mMaterial.mOverrideShader = overrideshader;
mMaterial.mChanged = true;
mTextureModeFlags = mat->GetLayerFlags();
auto scale = mat->GetDetailScale();
mStreamData.uDetailParms = { scale.X, scale.Y, 0, 0 };
}
void SetMaterial(FGameTexture* tex, EUpscaleFlags upscalemask, int scaleflags, int clampmode, int translation, int overrideshader)