A downloadable asset pack for Windows, macOS, Linux, and Android

pageflip

mousePos = event.position-global_position  

and

 material.set_shader_parameter("scale",global_scale)

in script needed, and the COLOR is not correct if using a texture with various ALPHA, need to be improved

wave

also need "mousePos = event.position-global_position " and "material.set_shader_parameter("scale",global_scale)"

Need to send outside time in "func _process(delta):". 

Need an Array which has the right size, and send it to "mPosTime[100]" in shader. Like:

var time = fmod(Time.get_ticks_msec()/1000.,3600.)
pointArray.pop_front()
pointArray.append(Vector3(mousePos.x,mousePos.y,time))
material.set_shader_parameter("mPosTime",pointArray)

Download

Download
pageFlip.gdshader 4.1 kB
Download
wave.gdshader 2 kB

Leave a comment

Log in with itch.io to leave a comment.