How does Filament utilize the sh.txt file and under what circumstances? #6625
-
Greetings! In the default build, there exists an IBL asset here: Up until now I thought this was always used, however after inspecting the samples with renderdoc, I noticed that the iblSH frameUniform looks like this in all samples: The only piece of information I could easily discern from the source code was from IndirectLight.cpp:
This would lead me to expect all of the sh values to be 65504.0 however it's just the ones in the first position of the array. All this aside the results I'm seeing look correct so far as I can tell, comparing the output of a sample and my custom implementation, but why? Why does the sh.txt exist? Is it a quality thing, or a performance thing that can be enabled/disabled used or not? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That file sh.txt is not used when using the KTX files. KTX files embed that information already. |
Beta Was this translation helpful? Give feedback.
That file sh.txt is not used when using the KTX files. KTX files embed that information already.