UNPKG

molstar

Version:

A comprehensive macromolecular library.

14 lines (12 loc) 299 B
export const apply_interior_color = ` if (interior) { if (uInteriorColorFlag) { gl_FragColor.rgb = uInteriorColor; } else { gl_FragColor.rgb *= 1.0 - uInteriorDarkening; } #ifdef dTransparentBackfaces_opaque gl_FragColor.a = 1.0; #endif } `;