0
$\begingroup$

I’m getting to the rigging stage of making this character, and something about one of my materials is getting messed up when I move her.

Her eye’s material has a gradient that controls what part of her cornea is opaque black and what part is transparent. It’s supposed to be completely opaque at the top and gradually become transparent at the bottom so the iris can show through. However, when I move the character the gradient doesn’t follow the model. It gets mapped to the cornea on a global level rather than moving with the object.

I’ve a screenshot of of what happens when I move her. The gradient should be top to bottom on both eyes. I included the section of my shader nodes that control how the gradient is generated. Can anyone help me figure out how to make the mapping stay consistent while the object moves?

Cheers

Material Nodes and Image of Eye

$\endgroup$
1
$\begingroup$

Object mode takes to account object position in space, use the texture coordinate "generated" output.

$\endgroup$

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.