-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from Lyzev/131-bug-opening-up-schizoid-clickg…
…ui-crashes-the-game-when-using-liquidbounce-with-schizoid-1 did take way too long, sry
- Loading branch information
Showing
4 changed files
with
53 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/resources/assets/schizoid/shaders/core/Random/Random_FP.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright (c) 2023. Schizoid | ||
* All rights reserved. | ||
*/ | ||
|
||
#version 330 | ||
|
||
in vec2 uv; | ||
out vec4 color; | ||
|
||
uniform float Time; | ||
|
||
#include "Noise.glsl" | ||
|
||
void main() { | ||
if (rand(uv * (4500 + 2500 * rand(vec2(Time)))) < .7) { | ||
color = vec4(0); | ||
} else { | ||
color = vec4(1); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/resources/assets/schizoid/shaders/core/Random/Random_VP.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright (c) 2023. Schizoid | ||
* All rights reserved. | ||
*/ | ||
|
||
#version 330 | ||
|
||
in vec2 position; | ||
out vec2 uv; | ||
|
||
void main() { | ||
gl_Position = vec4(position, 0, 1); | ||
uv = position * .5 + .5; | ||
} |