Preface: I am pretty damn new to shaders. Hello, I'm trying to write a shader that will make a tiled effect with the graphic based on the scale found in the transform of the object. I got this effect going by making a shader with editable values to represent scale and attached a script that would constantly update those values based on the objects scale, but it seemed this caused a new material to be created all the time. I don't think that's a good thing, so I'm wondering if it's possible to get the scale from the shader code, that way all objects that use this effect can use that shader without needing to edit any values inside. If this is possible and someone can explain how it would be greatly appreciated!