Created
February 11, 2026 23:14
-
-
Save patriciogonzalezvivo/3b2156f7fafa5138cd5746a28fd7b913 to your computer and use it in GitHub Desktop.
glslViewer Shader: video_test
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| { | |
| "frag": "#ifdef GL_ES\nprecision mediump float;\n#endif\n\nuniform sampler2D u_tex0;\nuniform vec2 u_tex0Resolution;\n\nuniform float u_time;\nuniform vec2 u_resolution;\n\n#include \"lygia/space/ratio.glsl\"\n#include \"lygia/sample/zero.glsl\"\n\nvoid main() {\n vec4 color = vec4(vec3(0.0), 1.0);\n vec2 pixel = 1.0/u_resolution;\n vec2 st = gl_FragCoord.xy * pixel;\n st = ratio(st, u_resolution); \n \tst = ratio(st, u_tex0Resolution.yx);\n\n color = sampleZero(u_tex0, st);\n\n gl_FragColor = color;\n}\n", | |
| "vert": "#ifdef GL_ES\nprecision mediump float;\n#endif\n\nattribute vec4 a_position;\nvarying vec4 v_position;\n\nvoid main() {\n v_position = a_position;\n gl_Position = a_position;\n}\n", | |
| "commands": [ | |
| "fullscreen,on", | |
| "camera_position,-0,-0,-2", | |
| "camera_look_at,0,0,0", | |
| "textures,on" | |
| ], | |
| "assets": { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment