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