PDA

View Full Version : Delegate question in scripted material plugin


Lukashi
10-25-2007, 09:12 PM
Hey everyone,
I am trying to modify a scripted material plugin. It is an extension of the standard material. It has a slot for normal maps but when it delegates it uses
"delegate.bumpMap = given_map"

This of course makes the material render incorrectly because it renderes a normal map as a bump, is it possible to make the map automatically use a normal bump map?

Thanks,

MoonDoggie
10-25-2007, 09:25 PM
replace
delegate.bumpMap = given_map

with
delegate.bumpMap = normal_bump normal_map:given_map

Lukashi
10-25-2007, 10:12 PM
so simple thank you so much!

CGTalk Moderation
10-25-2007, 10:12 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.