UNPKG

molstar

Version:

A comprehensive macromolecular library.

23 lines (20 loc) 601 B
"use strict"; /** * Copyright (c) 2022 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Gianluca Tomasello <giagitom@gmail.com> */ Object.defineProperty(exports, "__esModule", { value: true }); exports.blendBackDpoit_frag = void 0; exports.blendBackDpoit_frag = ` precision highp float; uniform sampler2D tDpoitBackColor; uniform vec2 uTexSize; void main() { vec2 coords = gl_FragCoord.xy / uTexSize; gl_FragColor = texture2D(tDpoitBackColor, coords); if (gl_FragColor.a == 0.0) { discard; } } `;