Description

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.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-225272 in the post.

0
Login to Vote

Backlogged
CreatedSep 24, 2024
UpdatedOct 3, 2024
View Jira Issue