Resolves a texture path starting at resourcePath if it's relative. Ported from v1 codebase. Legacy code, if it works, then don't touch it.