Change map shader at runtime

Posted By: alibaba

Change map shader at runtime - 06/17/15 17:07

Is it possible? I mean I can change a models shader with ent_mtlset, but how do I change it for the map?
Posted By: sivan

Re: Change map shader at runtime - 06/18/15 10:13

set different materials to blocks you want to change independently (originally they can have the same shader), and:
effect_load(mtl_flat ,"your.fx");
effect_load(mtl_shaded ,"your.fx");
Posted By: alibaba

Re: Change map shader at runtime - 06/18/15 14:39

Awesome! Thank you very much, it works like a charm laugh
© 2024 lite-C Forums