Home Unity

Texture scaling in Unity

Hey everyone, I'm wondering if there is a way make secondary normals and albedos scale in regard to the scale of the mesh they are applied to. Meaning if I have two of the same rock and I scale one then the secondary maps will stay the same scale to the world.

See image. I made two blocks to show what I'm referring to. The textures they have applied are the secondary normal and albedo. I would like the detail to stay the same scale (in this example the stone bricks) even if the mesh is scaled larger or smaller.

Replies

  • Eric Chadwick
    You would need to write your own shader. There's probably a way to adjust the UVs based on object scale, though I'm not sure of the specifics.

    You could also take a look at tri-planar mapping. There are a few shaders in the Asset Store which do this already. Tri-planar creates automatic UVs, either in object space or in world space.
Sign In or Register to comment.