mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-19 07:00:52 +00:00
- fixed: The scale vector for detail maps was not passed to the shader.
This commit is contained in:
parent
b0964101a5
commit
646457eb03
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue