molstar
Version:
A comprehensive macromolecular library.
26 lines (23 loc) • 610 B
JavaScript
/**
* Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
export const sum_frag = `
precision highp float;
precision highp int;
precision highp sampler2D;
uniform sampler2D tTexture;
precision highp isampler2D;
uniform isampler2D tTexture;
void main(void) {
gl_FragColor = texture2D(tTexture, vec2(0.5));
gl_FragColor = ivec4(texture2D(tTexture, vec2(0.5)).r);
}
`;