From 646457eb03351807bce2b7e0eb733b1cac9b44f4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 11 Jun 2020 12:41:50 +0200 Subject: [PATCH] - fixed: The scale vector for detail maps was not passed to the shader. --- src/common/rendering/hwrenderer/data/hw_renderstate.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/rendering/hwrenderer/data/hw_renderstate.h b/src/common/rendering/hwrenderer/data/hw_renderstate.h index 923b187150..07265ca290 100644 --- a/src/common/rendering/hwrenderer/data/hw_renderstate.h +++ b/src/common/rendering/hwrenderer/data/hw_renderstate.h @@ -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)