Bad Apple with Transparency
Made in Godot!
Shader Code:
shader_type canvas_item;
uniform float below = 0.01;
uniform float Sign = -1.0;
uniform float above = 0.0;
void fragment() {
vec4 pixelColor = texture(TEXTURE,UV);
float a = above - Sign * pixelColor.r - below;
COLOR = vec4(pixelColor.rgb,a);
}
With help from MartinVDL of Processing Forum.
Main code:
extends Node
# Called when the node enters the scene tree for the first time.
func _ready():
get_tree().get_root().set_transparent_background(true)
OS.set_window_always_on_top(false)
OS.set_window_always_on_top(true)
$VideoPlayer.play()
$VideoPlayer/AnimationPlayer.play("play")
func _unhandled_input(event):
if event.is_action_pressed("ui_cancel"):
get_tree().quit()
Per pixel transparency set to allowed + enabled.
Credits:
Song by ZUN, of Touhou fame
AMV by Anira and crew on Nico Nico
Godot version by Kaizar Nike