Anri/AdBlockNot
Archived
1
0
Fork 0
This repository has been archived on 2024-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
AdBlockNot/shaders/oldscreen.gdshader

24 lines
497 B
Text
Raw Permalink Normal View History

shader_type canvas_item;
uniform float SCREEN_HEIGHT = 240.0;
void vertex() {
// Called for every vertex the material is visible on.
}
void fragment() {
// Called for every pixel the material is visible on.
int y_index = int(UV.y * SCREEN_HEIGHT);
if(y_index % 2 == 0){
COLOR.a = 0.05;
}
else {
COLOR.a = 0.0;
}
}
//void light() {
// Called for every pixel for every light affecting the CanvasItem.
// Uncomment to replace the default light processing function with this one.
//}