common code for shaders
This commit is contained in:
+2
-9
@@ -1,19 +1,12 @@
|
||||
#version 460
|
||||
|
||||
uniform float iTime;
|
||||
uniform vec2 iResolution;
|
||||
|
||||
uniform sampler2D frame3;
|
||||
uniform sampler2D frame5;
|
||||
|
||||
in vec2 vUV;
|
||||
layout(location = 5) out vec3 fragColor;
|
||||
|
||||
// FX A
|
||||
// ---------
|
||||
// IN: 3 / 5
|
||||
// OUT: 5
|
||||
|
||||
layout(location = 5) out vec3 fragColor;
|
||||
|
||||
void main() {
|
||||
fragColor = texture(frame3, vUV).xyz;
|
||||
}
|
||||
Reference in New Issue
Block a user