Closed kstpr closed 9 months ago
No worries.
I'm curious what additions or changes you're doing, so in case you want to exchange ideas, be my guest.
Regarding this PR specifically, maybe the Apply
parameters should be exposed so you wouldn't need to fork the whole package.
We needed to have the textures as CPU-readable for some time during the scene building in order to create some boolean masks for the alpha threshold. We have alpha-tested geometry that we need to teleport through in VR and the collisions with the fully transparent parts of that geometry prevent teleportation. So we create some low-res boolean masks from appropriate mip levels of the textures and only then we call Apply in our app code to delete the CPU copies. Then for teleportation we can sample the boolean masks and make some changes to the logic. It's somewhat of a niche case.
This was some fail on our side, should have been a modification of our fork only, not the original repo. Sorry for the hassle.