Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by rayp. 10/15/25 20:44
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 7,036 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Change map shader at runtime #452581
06/17/15 17:07
06/17/15 17:07
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Is it possible? I mean I can change a models shader with ent_mtlset, but how do I change it for the map?


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Change map shader at runtime [Re: alibaba] #452592
06/18/15 10:13
06/18/15 10:13
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
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");


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Change map shader at runtime [Re: sivan] #452597
06/18/15 14:39
06/18/15 14:39
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Awesome! Thank you very much, it works like a charm laugh


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de

Moderated by  Blink, Hummel, Superku 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1