stuff
This commit is contained in:
parent
96f1792c09
commit
4fc1e20fdd
30 changed files with 1045 additions and 39 deletions
16
.local/sioyek/shaders/undendered_page.fragment
Normal file
16
.local/sioyek/shaders/undendered_page.fragment
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
in vec2 screen_pos;
|
||||
in vec2 uvs;
|
||||
|
||||
void main(){
|
||||
int x = (int)(uvs.x / 0.1);
|
||||
int y = (int)(uvs.y / 0.1);
|
||||
if ((x+y)% 2 == 0){
|
||||
color = vec4(1.0, 0.0, 0.0, 1.0);
|
||||
}
|
||||
else{
|
||||
color = vec4(0.0, 0.0, 1.0, 1.0);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue