Description

Download demo: https://1drv.ms/u/s!AppH38QcoEBfh-RH_obU1-TYr7637A

Forum thread: https://forum.yoyogames.com/index.php?threads/flag-shader.3304/

A well-commented, fast and easily customizable 2D flag shader. The vertex shader interpolates between two states (folded and unfolded) where the wind speed the user specifies affects the animation speed, blending and mirroring of the states. The fragment shader applies gradient lighting calculated in the vertex shader and can be commented out if not needed.

The extension consists of one object, one shader and five scripts to make it easy to implement, together with an example to show you how to use the extension. The scripts let you set the wind speed, the animation speed factor, the flag x/y/width/height, the amount of vertices to use and more.

Scripts:

  • flag_create
  • flag_set_sprite
  • flag_set_transformation
  • flag_set_wind
  • flag_set_time_factor

End User Licence Agreement (EULA).

Version 1.0.0. Published October 21, 2014

Created with GameMaker: Studio v1.99.182

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

raul a 07 December 2016

Great job

Works perfect. I recommend it


Gravatar

Jesse C 17 December 2014

Does what it says.

Very simple but nice extension that does what it says.

Package contents

Loading, please wait

What is the issue?

Back to Top