@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
2 lines (1 loc) • 434 B
JavaScript
export default "#include <common>\n\n// uniform sampler2D texture_position;\n// uniform sampler2D texture_velocity;\n\n// INSERT DEFINE\n\nvoid main() {\n\n vec2 particleUv = (gl_FragCoord.xy / resolution.xy);\n // vec3 position = texture2D( texture_position, particleUv ).xyz;\n // vec3 velocity = texture2D( texture_velocity, particleUv ).xyz;\n // gl_FragColor.xyz = position + TIME_INCREMENT * velocity;\n\n // INSERT BODY\n\n}";