MattJeanes / TARDIS

Time and Relative Dimension in Space, for Garry's Mod
MIT License
63 stars 27 forks source link

Using a refract texture to perform self-culling during demat #1054

Open FuzzyLeo opened 8 months ago

FuzzyLeo commented 8 months ago

basically, if you have a duplicate of the model in the exact same spot, and that duplicate has a refract model compatible texture, then it culls part of the model creating a very nice transparency effect

image

you could make it so this duplicate model only existed during demat, ensuring no issues during regular play

howevere there are 2 main issues with this, 1 you can fix, and 1 im not sure about

first, the main thing is that the textures MUST be applied to the model the same way the material tool and texturesets do it, having the texture be on the model the same way the cloak effect does it will cause the refract texture to bug out

secondly theres this issue image this happens because despite not being culled by the refract texture, its still on top of it, causing a very slight difference

here is a comparison showing the slighty different resolutions due to the refract texture being on top in one image

somehow fixing this issue would make the effect almost seamless

i should also note that this effect would be incompatible with the white ghost effect people have been wanting

overall if this was implemented, imo it would work best as a global setting controlled by the user, in the same vein as lighting override