Announcement

Collapse
No announcement yet.

Incorrect shading on mobile, UE 4.24.3

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Incorrect shading on mobile, UE 4.24.3

    Hello
    In version 4.24, incorrect shading on mobile(android,ios) rendering in Movable Actors when using Static Light.

    Click image for larger version  Name:	MobileInccorrectShading2.png Views:	0 Size:	544.0 KB ID:	1783639

    If I use stationary light then the shading works correctly.

    This bug is both in the preview render and on real devices after the build.

    It seems that the programmers have mixed up the direction of light of the X and Y axis in the rendering on mobile shading.

    In version 4.23 and in version 4.25, the light works correctly.

    Does anyone know how to solve this problem?
    I use source codes with github, can anyone know where the engine does these shading?
    Last edited by ForgeGames; 07-02-2020, 06:25 PM.

    #2
    Spent a few days until I found where this bug is, thanks Epic Games
    This is due to a bug in LightMapRendering.cpp. Epic fixed it at 4.25 but decided not to update 4.24



    The lines to be added to LightMapRendering.cpp in the same way as in 4.25

    Swap(SHCoefficientEncoded.R, SHCoefficientEncoded.B);
    Swap(LQLightDirection.X, LQLightDirection.Z);
    Swap(OutInterpolation.PointSkyBentNormal.X, OutInterpolation.PointSkyBentNormal.Z);

    Comment

    Working...
    X