UNPKG

molstar

Version:

A comprehensive macromolecular library.

29 lines (26 loc) 690 B
"use strict"; /** * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ Object.defineProperty(exports, "__esModule", { value: true }); exports.sum_frag = void 0; exports.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 } `;