We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3be9fa2 + b2a832b commit a66c7d8Copy full SHA for a66c7d8
1 file changed
addons/material_maker/nodes/tiler.mmg
@@ -58,7 +58,8 @@
58
"\t\t\tvec2 pos = uv*tile+vec2(float(dx), float(dy)); pos = fract((floor(mod(pos, tile))+vec2(0.5))/tile)-vec2(0.5);",
59
"\t\t\tvec2 seed = rand2(pos+_seed);",
60
"\t\t\trc1 = rand3(seed);",
61
- "\t\t\tpos = fract(pos+vec2($fixed_offset/tile.x, 0.0)*floor(mod(pos.y*tile.y, 2.0))+$offset*seed/tile);",
+ "\t\t\tvec2 tile_index = floor(uv * tile) + vec2(float(dx), float(dy));",
62
+ "\t\t\tpos += vec2(($fixed_offset/tile.x)*mod(mod(tile_index.y, tile.y), 2.0), 0.0)+$offset*seed/tile;",
63
"\t\t\tfloat mask = $mask(fract(pos+vec2(0.5)));",
64
"\t\t\tif (mask > 0.01) {",
65
"\t\t\t\tvec2 pv = fract(uv - pos)-vec2(0.5);",
0 commit comments