Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func _process(_delta):
- print( "Frame " + str(sprite.frame) )
- print( "Anim Length " + str(sprite.sprite_frames.get_frame_count(sprite.animation)-1.0) )
- print( "Resulting Frame " + str((sprite.frame+0.0)/(sprite.sprite_frames.get_frame_count(sprite.animation)-1.0) ))
- afterimages.process_material.set_shader_parameter( "tex_anim_offset", (sprite.frame+0.0)/(sprite.sprite_frames.get_frame_count(sprite.animation)-1.0) )
Advertisement
Add Comment
Please, Sign In to add comment