Looooong / Unity-SRP-VXGI

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

Is it possible to set the VXGI's resolution? #29

Closed Wenzy-- closed 4 years ago

Wenzy-- commented 4 years ago

Hello.Looooong.Is it possible to custom the resolution in VXGI? Where can i modify? I know the XYZ axizs use the same resolution like a cube.But in some situation.If there's a very long object like 8 1 1 i want to render on the screen. Then there is a lot of space is useless.

Looooong commented 4 years ago

I'm afraid this is one of the limitation of this lighting system. The voxel resolution affects the mipmap resolution as well. And I cannot think of a way to change the shape of the voxel boundary without changing the underlying voxel data presentation.

Wenzy-- commented 4 years ago

But if i don't change the boundary.I just ban some space then i don't use that to calculate the lighting.Is it possible to improve the performance (Just my assumption)

Wenzy-- commented 4 years ago

I found i can go to the

public enum Resolution { Low = 33, Medium = 65, High = 129, VeryHigh = 257 }

to adjust the whole voxel's resolution.If i can ban some space base on that.then i can acheive a similar result

Looooong commented 4 years ago

I am against modify Resolution enum, as it is calculated to fit in with the mipmap generator, where each mipmap level resolution is 2^n + 1.