UNPKG

molstar

Version:

A comprehensive macromolecular library.

14 lines (11 loc) 287 B
export const compose_frag = ` precision highp float; precision highp sampler2D; uniform sampler2D tColor; uniform vec2 uTexSize; uniform float uWeight; void main() { vec2 coords = gl_FragCoord.xy / uTexSize; gl_FragColor = texture2D(tColor, coords) * uWeight; } `;