-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api routes for glsl programs tracker for glsl programs as nodes
reorg of utils.py nicer globals for JS side
- Loading branch information
Showing
15 changed files
with
475 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
uniform sampler2D imageA; | ||
uniform sampler2D imageB; | ||
|
||
void mainImage( out vec4 fragColor, vec2 fragCoord ) { | ||
vec2 uv = fragCoord.xy / iResolution.xy; | ||
vec3 col = texture2D(imageA, uv).rgb; | ||
vec3 col2 = texture2D(imageB, uv).rgb; | ||
fragColor = vec4(mix(col, col2, 0.5), 1.0); | ||
} |
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,6 @@ | ||
#version 330 core | ||
void main() | ||
{ | ||
vec2 verts[3] = vec2[](vec2(-1, -1), vec2(3, -1), vec2(-1, 3)); | ||
gl_Position = vec4(verts[gl_VertexID], 0, 1); | ||
} |
Oops, something went wrong.