ruyo / VRM4U

Runtime VRM loader for UnrealEngine4
Other
1.36k stars 176 forks source link

Point lights don't affect materials #367

Open JasonWeise opened 5 months ago

JasonWeise commented 5 months ago

Describe the bug Not sure this is 100% a bug or just a limitation of the shader, but I have found that you cannot have any lights other than directional lights affect the material. I have a need to have the character enter a dark room and turn on a light, but as the material does not react to point lights, the character "glows" like an unlit material in that room regardless of how dark it is. I see a directional light intensity affects the lit toon shader, but no other lights seem to work (and directional won't work in my senario as it is indoors scene).

UnrealEngine Version: Unreal 5.3.2 - Latest source VMR4U as of today.

ruyo commented 5 months ago

Hi. I don't know if it translates well, but I have written an explanation. MToonUnlit does not reflect lights; MToonLit reflects a few lights. But basically it is composed of Emmissive. MPC allows you to adjust the lightness and darkness of the entire character material. It can be adjusted manually. If you want to apply lights accurately, please import and use SSSProfile mode. Thanks.

https://ruyo-github-io.translate.goog/VRM4U/01_look/?_x_tr_sl=ja&_x_tr_tl=en&_x_tr_hl=ja

JasonWeise commented 5 months ago

Hi @ruyo thank you for your speedy reply, and it translates perfectly fine :) I will try the SSSProfile mode to see if it solves the issue.