Looooong / Unity-SRP-VXGI

Voxel-based Global Illumination using Unity Scriptable Render Pipeline
MIT License
766 stars 62 forks source link

Light intensity defaulting to 10 at runtime #28

Open 00alia00 opened 5 years ago

00alia00 commented 5 years ago

Hi! First off, great stuff! The output is beautiful! :) However I have noticed that nomatter how I set the intensity of the directional light in the scene, it will set itself back to 10 every time I press play.

This can be reproduced by starting any scene with a directional light.

I'm not sure if you want a seperate bug for this but if i create a box with walls that are made of 5 unit thick boxes, the inside still has light even if the ambient light is set to 0x000000 like so:

2019-08-13_11-27-23

If is change the directional lights intensity to 1 it looks like so:

2019-08-13_11-35-38

(which is much better - i set the walls to 1 unity thick and it seems to only leak a little light)

Anyway thanks for your efforts!

Alia

Looooong commented 5 years ago

About the light intensity defaults to 10, I have no idea about this. I will probably check it about later.

On the other hand, light leaking is one of the main problems of this lighting technique. This can not be fully fixed, and can be mitigated by implementing anisotropic voxel shading, which I will do in the future.