Models & Shaders

Posted By: dtntr

Models & Shaders - 11/19/08 15:00

How i can apply different shaders on different part of model? Two different models it not for me.
Posted By: tkunze

Re: Models & Shaders - 11/19/08 16:16

You can apply shaders with ent_mtlset to the different skins of your model.

Code:
 
MATERIAL* shader1 = {
    effect = "shader1.fx";
}

MATERIAL* shader2 = {
    effect = "shader2.fx";
}

action mymodel() {
    my.material=shader1;        // Set Shader1 to all Skins
    ent_mtlset(my,shader2,2);   // Change Skin2 to Shader2 
}

© 2024 lite-C Forums