UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

2 lines (1 loc) 303 B
export default "precision highp float;\nprecision highp sampler2D;\n\nuniform vec2 tSize;\nuniform float order;\nuniform sampler2D texture;\n\n// *** ADD COMMON ***\n\nvoid main() {\n\n vec2 uv = gl_FragCoord.xy / tSize.xy;\n\n gl_FragColor = unpackPosition( texture2D( texture, uv ), order );\n\n}\n";