Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, TipmyPip, OptimusPrime), 15,229 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Two effects in one action? #316124
03/21/10 16:41
03/21/10 16:41
Joined: Feb 2010
Posts: 40
Germany
G
Grandma Offline OP
Newbie
Grandma  Offline OP
Newbie
G

Joined: Feb 2010
Posts: 40
Germany
Hi all,
Is it possible to use two „shader-made“-effects in one action?
In this example the second material erase the first one:


Code:
action Grasbewegung()   
{     
       my.material = mat_alphatest; // Shader für Sortierung
       ent_mtlset (my,mtl_animTree, 1); //Shader für Bewegung      
       var gras_angles;
       var gras_speed;
       set (my, PASSABLE);
      // my.scale_x = 0.7 + random(2) / 3; // set different scales for the gras models
       //my.scale_y = my.scale_x;
       //my.scale_z = my.scale_x;
       gras_speed = 3 + random(5);
       while (1)
       {
               gras_angles += gras_speed * time_step; // allow the gras to weave
               my.roll += 0.02 * sin(gras_angles);
               wait (1);
       }
}



Re: Two effects in one action? [Re: Grandma] #316127
03/21/10 16:46
03/21/10 16:46
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
O.o I already answered your question in your "Sortiercode" thread...


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