common code for shaders
This commit is contained in:
+2
-10
@@ -1,20 +1,12 @@
|
||||
#version 460
|
||||
|
||||
uniform float iTime;
|
||||
uniform vec2 iResolution;
|
||||
|
||||
uniform sampler2D frame0;
|
||||
uniform sampler2D frame1;
|
||||
|
||||
in vec2 vUV;
|
||||
layout(location = 3) out vec3 fragColor;
|
||||
|
||||
|
||||
// SRC A
|
||||
// ---------
|
||||
// IN: 0 / 1
|
||||
// OUT: 3
|
||||
|
||||
layout(location = 3) out vec3 fragColor;
|
||||
|
||||
void main() {
|
||||
vec2 uv0 = vUV.st;
|
||||
float ratio = iResolution.x / iResolution.y;
|
||||
|
||||
Reference in New Issue
Block a user