SiliconStudio / xenko

Old repo for Xenko Game Engine. Please use https://github.com/xenko3d/xenko instead.
http://xenko.com
1.54k stars 345 forks source link

Directional lighting won't apply to textures on a model? #512

Open RandomAnimeGamer opened 7 years ago

RandomAnimeGamer commented 7 years ago

Hi, I'm running Xenko on 1.9.3 beta and am having a strange issue here, but I'm not sure if it's something I did wrong or a legitimate bug. When importing a model into my Xenko 3D project and applying textures to its materials, lighting has absolutely no effect on said textures.

Directional Light Intensity = 5: https://gyazo.com/a1421f0755a4faf04f561469d32f32b0 Directional Light Intensity = 10: https://gyazo.com/2b9e318fb0860d1461f90e6e095e8c60

Both the model and the directional light are in the same group (Group 0) and this issue persists when I have the model casting and receiving shadows. I've also tried using a spotlight rather than directional light and encountered the same problem.

Here are my PC specs, just in case you need them: OS: Windows 10, 64-bit CPU: Intel i7-4500U (1.8+2.4Ghz, hyper threading enabled) RAM: 8GB (7.45GB Usable) GPU: Integrated (Intel HD 4000 with latest drivers from official Intel website)

I'm a bit new to Xenko, so any help is appreciated, thanks!

RandomAnimeGamer commented 7 years ago

I think I figured it out. Adding the material to an emissive map and changing the intensity also changed the lighting on the textures. The directional lighting's intensity still doesn't apply to the texture, but at least I have a workaround for this problem.