-
Notifications
You must be signed in to change notification settings - Fork 2
/
shaders.jsonl
5 lines (5 loc) · 1.35 KB
/
shaders.jsonl
1
2
3
4
5
{"name":"assets/minecraft/textures/block/lava_flow.png","value":"precision mediump float;\n\nuniform float time;\n\nvoid main () {\n gl_FragColor = vec4(0.80, 0.32, 0.04, 1.0);\n}\n"}
{"name":"assets/minecraft/textures/block/lava_still.png","value":"precision mediump float;\n\nuniform float time;\n\nvoid main () {\n gl_FragColor = vec4(0.80, 0.32, 0.04, 1.0);\n}\n"}
{"name":"assets/minecraft/textures/block/nether_portal.png","value":"precision mediump float;\n\nuniform float time;\n\nvoid main () {\n gl_FragColor = vec4(0.25, 0.0, 0.65, 0.65);\n}\n"}
{"name":"assets/minecraft/textures/block/water_flow.png","value":"precision mediump float;\n\nuniform float time;\n\nvoid main () {\n gl_FragColor = vec4(vec3(0.64), 0.71);\n}\n"}
{"name":"assets/minecraft/textures/block/water_still.png","value":"precision mediump float;\n\nuniform float time;\n\nconst float pi = 3.14159;\n\nvoid main () {\n vec2 uv = (gl_FragCoord.xy - 0.5) / 7.0;\n uv.y = 1.0 - uv.y;\n\n float wave1 = abs(sin(clamp(uv.y, 0.0, 0.34) * pi * 3.0)) * abs(sin((uv.x - time / -2.0) * pi * 2.0)) * abs(cos(time * pi));\n float wave2 = abs(sin(clamp(uv.y, 0.67, 1.0) * pi * 3.0)) * abs(sin((uv.x - time / 2.0) * pi * 2.0)) * abs(sin(time * pi));\n float wave = floor((wave1 + wave2) * 9.0) / 8.0;\n\n gl_FragColor = vec4(vec3(mix(0.64, 1.0, clamp(wave, 0.0, 1.0))), 0.71);\n}\n"}