Derpius / VisTrace

Garry's Mod binary module for tracing meshes at high speed on the CPU (and much more)
https://derpius.github.io/VisTrace
MIT License
27 stars 1 forks source link

Add TraceResult:Material #78

Closed yogwoggf closed 2 years ago

yogwoggf commented 2 years ago

Fixes #77

PR Type (tick all that are applicable)

Tested Targets (only applicable for changes to the binary module, delete otherwise)

Checklist

Description TraceResult:Material() returns the material path (local to materials of course) of the trace result. I don't really see a need for multiple texture getters because you could literally just do Material(TraceResult:Material()):GetString("$basetexture") and have more options in doing so.

Please explain further

Derpius commented 2 years ago

I don't really see a need for multiple texture getters because you could literally just do Material(TraceResult:Material()):GetString("$basetexture")

Have you forgotten how unbearably slow Material is? And that doesn’t account for other textures not present on the material like MRAO