Gamestudio Links
Zorro Links
Newest Posts
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
Camera always moves upwards?
by NeoDumont. 11/14/25 16:32
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (VoroneTZ, TipmyPip, NeoDumont), 8,453 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
tritom, sheliepaley, Blueguy, blobplayintennis, someone2
19178 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