- 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
1 changed files with 2 additions and 0 deletions

View File

@ -563,6 +563,8 @@ public:
mMaterial.mOverrideShader = overrideshader; mMaterial.mOverrideShader = overrideshader;
mMaterial.mChanged = true; mMaterial.mChanged = true;
mTextureModeFlags = mat->GetLayerFlags(); 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) void SetMaterial(FGameTexture* tex, EUpscaleFlags upscalemask, int scaleflags, int clampmode, int translation, int overrideshader)