UNPKG

molstar

Version:

A comprehensive macromolecular library.

26 lines (23 loc) 610 B
/** * 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; #if __VERSION__ == 100 precision highp sampler2D; uniform sampler2D tTexture; #else precision highp isampler2D; uniform isampler2D tTexture; #endif void main(void) { #if __VERSION__ == 100 gl_FragColor = texture2D(tTexture, vec2(0.5)); #else gl_FragColor = ivec4(texture2D(tTexture, vec2(0.5)).r); #endif } `;