Add generic 1D texture map pass
This commit is contained in:
9
shaders/glava/util/pass.frag
Normal file
9
shaders/glava/util/pass.frag
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
uniform sampler1D tex;
|
||||||
|
|
||||||
|
out vec4 fragment;
|
||||||
|
in vec4 gl_FragCoord;
|
||||||
|
|
||||||
|
/* 1D texture mapping */
|
||||||
|
void main() {
|
||||||
|
fragment.r = texelFetch(tex, int(gl_FragCoord.x), 0).r;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user