Hey, I'm trying to switch some textures with an attribute.
But I cannot seem to get the shader to work.
Any tips somebody?
switching textures with attributes
2702 2 1- claudio_101
- Member
- 121 posts
- Joined: July 2008
- Offline
- Doudini
- Member
- 333 posts
- Joined: Oct. 2012
- Offline
hi,
hope i understand what you are trying to do correct.
below the attributeCreate you can add 2 groups for each leaf and:
group by expression: $PAIR == 0
group2 by expression: $PAIR == 1
then the material dont add it on the geometry but instead add a material sop below the 2 groups. there you can add your 2 materials to each group and on one you can overwrite the attribute to your “opimg/comp1/OUT_LEAF2”. you wont need a second baseColorMap attribute in the shader itself.
i have uploaded a file with the correction though i switched the paths in the img's so you might need to change them back in the composite.
hope i understand what you are trying to do correct.
below the attributeCreate you can add 2 groups for each leaf and:
group by expression: $PAIR == 0
group2 by expression: $PAIR == 1
then the material dont add it on the geometry but instead add a material sop below the 2 groups. there you can add your 2 materials to each group and on one you can overwrite the attribute to your “opimg/comp1/OUT_LEAF2”. you wont need a second baseColorMap attribute in the shader itself.
i have uploaded a file with the correction though i switched the paths in the img's so you might need to change them back in the composite.
- claudio_101
- Member
- 121 posts
- Joined: July 2008
- Offline
-
- Quick Links