In FMaterialInstanceEditor::RefreshOnScreenMessages, there is a check for sRGB on Normal and Mask samplers.
The issue is the check uses a TextureCompressionSettings enum cast to EMaterialSamplerType rather than EMaterialSamplerType directly. The TextureCompressionSettings enum does not share indices with EMaterialSamplerType, so the TC_NormalMap becomes SAMPLERTYPE_Grayscale.
Seemingly, the correct check would be
if (Expression && ((Expression->SamplerType == SAMPLERTYPE_Normal || Expression->SamplerType == SAMPLERTYPE_Masks) && Texture->SRGB)).
Notably, this does not check virtual samplers, though.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-225272 in the post.
0 |
Component | UE - Rendering Architecture - Materials |
---|---|
Affects Versions | 5.5, 5.4.4 |
Created | Sep 24, 2024 |
---|---|
Updated | Oct 3, 2024 |