Polygonjs 2.0.53
Cursor-driven physics, render/Combine, shadow fixes
·built with Jai 0.2.029
-
Breaking
render/Add,render/Multiplyandrender/Compositeare replaced by onerender/Combine, whoseoperationparam is ADD, MULTIPLY or OVER. Scenes using the old nodes need the node swapped by hand. -
Breaking
mat/MeshInstanceis gone. Instances are drawn bymat/MeshBuilderwith acode/Instancenode inside, which is the graphgeo/Instancenow builds for you. -
New
A rigid body can be kinematic, driven from an actor with
code/SetObjectPositionorcode/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/Planeandcode/RayPlaneIntersect, to turn a pointer into a position in the scene. -
New
compute/Subnetandcompute/PolyNode: group compute nodes together, and save the group as a node you can reuse. -
New
render/Combineworks 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.