- Home /
WorldSpace-Like Texture/Material Tiling
Hello everyone,
I hope the title of my question is understandable, but I just don't know how to ask this. I am looking for a shader that I can apply to objects in my scene that will adjust the size of a tiling texture automatically. I would like this to minimize memory usage by using a single material, but the texture doesn't look correct on different sized cubes for obvious reasons. I stumbled on the following:
This shader does almost exactly what I want as it resizes and tiles the texture perfectly. Unfortunately, when the object in question moves, so does the texture as it is mapped to world space. I tried to simply change references of world space within the shader to local space, but that didn't work at all.
I am totally clueless about shader programming and all my experience comes from node-based design in applications such as MaPZoNe, Blender, 3D Studio Max, etc. I have no idea how to fix this and my searching over the previous several days has turned up no useful information other than something called "atlases." Not only is this a topic that I don't fully grasp, what I've read seems to make it not useful for my purposes.
Any help would be appreciated. ~ TrueKam