-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc8ee98
commit e97e08e
Showing
10 changed files
with
89 additions
and
180 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#define HIGHP | ||
|
||
uniform sampler2D u_texture; | ||
uniform vec2 u_texsize; | ||
uniform vec2 u_invsize; | ||
uniform float u_time; | ||
|
||
varying vec2 v_texCoords; | ||
|
||
void main(){ | ||
vec2 T = v_texCoords.xy; | ||
vec2 coords = (T * u_texsize); | ||
vec4 color = texture2D(u_texture, T); | ||
|
||
float timeFactor = u_time / 15.0; | ||
float sinFactor = abs(sin(timeFactor)) * 0.05; | ||
float baseAlpha = 0.37 + sinFactor; | ||
|
||
float stripe1 = step(mod(coords.x + coords.y + u_time / 4.0, 10.0), 3.0); | ||
float stripe2 = step(mod(coords.x - coords.y + u_time / 4.0, 10.0), 3.0); | ||
|
||
float alpha = max(baseAlpha + 0.2 * stripe1, baseAlpha + 0.2 * stripe2); | ||
|
||
color.a *= alpha; | ||
|
||
gl_FragColor = color; | ||
} |
Binary file removed
BIN
-293 Bytes
...prites/blocks/distribution/hard-light-transport/hard-light-conveyor-stacker.png
Binary file not shown.
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
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
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