Refactor everything to WayofTime.bloodmagic.*
This commit is contained in:
parent
46742a73d1
commit
096ba02450
771 changed files with 566 additions and 573 deletions
12
src/main/resources/assets/bloodmagic/shaders/beam.frag
Normal file
12
src/main/resources/assets/bloodmagic/shaders/beam.frag
Normal file
|
@ -0,0 +1,12 @@
|
|||
uniform sampler2D bgl_RenderedTexture;
|
||||
uniform int time;
|
||||
|
||||
void main() {
|
||||
vec2 texcoord = vec2(gl_TexCoord[0]);
|
||||
vec4 color = texture2D(bgl_RenderedTexture, texcoord);
|
||||
|
||||
float gs = (color.r + color.g + color.b) / 3;
|
||||
float r = sin(texcoord.x * 6 - 1.5 + sin(texcoord.y - time / 3.0)) * 1.1; //(sin((texcoord.x - texcoord.y) * 4 - time) + 1) / 2;
|
||||
|
||||
gl_FragColor = vec4(gs, gs, max(gs, r), gl_Color.a);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue