I’m trying to create a procedural tile texture using Brick Texture nodes, however I am having a slight problem. I want to be able to drive the offset value of the brick textures from outside of the group meaning that it needs an input, however it doesn’t have one. I’m really struggling to find a way to have a group input drive the offset values

Concept: What I am looking for


I don't think it's possible to directly drive the brick texture Offset from an input socket but you can formulate nodes to adjust the input Vector to achieve the same effect using the following nodes :

Brick Texture Offset Material

Note the two Value nodes on the left hand side - these can be used to adjust the Scale and Offset (the actual Brick Texture's Offset can be left at Zero). Adjusting the Scale or Offset should produce a similar effect to that of the actual Brick texture node.

Brick Texture Offset Result

This works by using the Scale and Y coordinate to calculate (using a Modulo node) where each alternate row of bricks starts and ends, and then calculating the offset (again, based on the Scale) and adding this into the X coordinate to offset those rows of bricks.

Note that this is only currently capable of adjusting the Scale and Offset - additional work will be required on the Maths nodes to allow for adjusting some of the other brick values (such as the Row Height).

Blend file included

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.