← Changelog

Polygonjs 2.0.53

Cursor-driven physics, render/Combine, shadow fixes

·built with Jai 0.2.029

  • Breaking render/Add, render/Multiply and render/Composite are replaced by one render/Combine, whose operation param is ADD, MULTIPLY or OVER. Scenes using the old nodes need the node swapped by hand.
  • Breaking mat/MeshInstance is gone. Instances are drawn by mat/MeshBuilder with a code/Instance node inside, which is the graph geo/Instance now builds for you.
  • New A rigid body can be kinematic, driven from an actor with code/SetObjectPosition or code/SetObjectAttribute. It pushes the dynamic bodies around, so you can shove a simulation with the cursor.
  • New Cursor nodes: code/Cursor, code/CursorRay, code/Ray, code/Plane and code/RayPlaneIntersect, to turn a pointer into a position in the scene.
  • New compute/Subnet and compute/PolyNode: group compute nodes together, and save the group as a node you can reuse.
  • New render/Combine works on WebGL2. Where there are no compute shaders it runs the same operation as a fullscreen pass, and the image is the same.
  • New An embedded scene can be unmounted and remounted from JavaScript, so a page can put a scene away and bring it back.
  • New New example: many rigid bodies you can push around with the cursor.
  • New The command line downloads the SDK without a login.