Seperating clone mesh material

Hey :blush:

How do I get it where there are 2 roof meshes and 2 box meshes…don’t want houses to look the same.

https://playground.babylonjs.com/#HTWJPL#56

Thank ya :heart:

1 Like

Hey, it looks like each box’s material is set to boxMat and each roof’s material is set to roofMat, but after changing line 61 to use boxMat1 and line 76 to use roofMat1, for the other house, then they have different materials applied. :slightly_smiling_face: :+1:

https://playground.babylonjs.com/#HTWJPL#60

2 Likes

Hey again :blush:

:woman_facepalming: :woman_facepalming: :woman_facepalming: :woman_facepalming:

Why didn’t I think of that…now I feel silly :joy:

Thank ya this was wrecking my brain for a few days :yellow_heart:

2 Likes