Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 330 core
- layout (location = 0) out vec4 color;
- in DATA
- {
- vec4 position;
- vec2 uv;
- vec4 color;
- flat float tex;
- } fs_in;
- uniform sampler2D texture0;
- uniform sampler2D texture1;
- uniform sampler2D texture2;
- uniform sampler2D texture3;
- uniform sampler2D texture4;
- uniform sampler2D texture5;
- uniform sampler2D texture6;
- uniform sampler2D texture7;
- uniform sampler2D texture8;
- uniform sampler2D texture9;
- uniform sampler2D texture10;
- uniform sampler2D texture11;
- uniform sampler2D texture12;
- uniform sampler2D texture13;
- uniform sampler2D texture14;
- uniform sampler2D texture15;
- uniform sampler2D texture16;
- uniform sampler2D texture17;
- uniform sampler2D texture18;
- uniform sampler2D texture19;
- uniform sampler2D texture20;
- uniform sampler2D texture21;
- uniform sampler2D texture22;
- uniform sampler2D texture23;
- uniform sampler2D texture24;
- uniform sampler2D texture25;
- uniform sampler2D texture26;
- uniform sampler2D texture27;
- uniform sampler2D texture28;
- uniform sampler2D texture29;
- uniform sampler2D texture30;
- uniform sampler2D texture31;
- void main()
- {
- int slot = int(fs_in.tex);
- if (slot == 0) {color = texture(texture0, fs_in.uv);}
- else if (slot == 1) {color = texture(texture1, fs_in.uv);}
- else if (slot == 2) {color = texture(texture2, fs_in.uv);}
- else if (slot == 3) {color = texture(texture3, fs_in.uv);}
- else if (slot == 4) {color = texture(texture4, fs_in.uv);}
- else if (slot == 5) {color = texture(texture5, fs_in.uv);}
- else if (slot == 6) {color = texture(texture6, fs_in.uv);}
- else if (slot == 7) {color = texture(texture7, fs_in.uv);}
- else if (slot == 8) {color = texture(texture8, fs_in.uv);}
- else if (slot == 9) {color = texture(texture9, fs_in.uv);}
- else if (slot == 10) {color = texture(texture10, fs_in.uv);}
- else if (slot == 11) {color = texture(texture11, fs_in.uv);}
- else if (slot == 12) {color = texture(texture12, fs_in.uv);}
- else if (slot == 13) {color = texture(texture13, fs_in.uv);}
- else if (slot == 14) {color = texture(texture14, fs_in.uv);}
- else if (slot == 15) {color = texture(texture15, fs_in.uv);}
- else if (slot == 16) {color = texture(texture16, fs_in.uv);}
- else if (slot == 17) {color = texture(texture17, fs_in.uv);}
- else if (slot == 18) {color = texture(texture10, fs_in.uv);}
- else if (slot == 19) {color = texture(texture11, fs_in.uv);}
- else if (slot == 20) {color = texture(texture12, fs_in.uv);}
- else if (slot == 21) {color = texture(texture13, fs_in.uv);}
- else if (slot == 22) {color = texture(texture14, fs_in.uv);}
- else if (slot == 23) {color = texture(texture15, fs_in.uv);}
- else if (slot == 24) {color = texture(texture16, fs_in.uv);}
- else if (slot == 25) {color = texture(texture17, fs_in.uv);}
- else if (slot == 26) {color = texture(texture11, fs_in.uv);}
- else if (slot == 27) {color = texture(texture12, fs_in.uv);}
- else if (slot == 28) {color = texture(texture13, fs_in.uv);}
- else if (slot == 29) {color = texture(texture14, fs_in.uv);}
- else if (slot == 30) {color = texture(texture15, fs_in.uv);}
- else if (slot == 31) {color = texture(texture16, fs_in.uv);}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement