The Loop Chronicles: November 2026 Recap
Alvaro Saburido
@alvarosabu
Yo! Welcome back to The Loop Chronicles 🍂. Last month WebGPU got its own entry @tresjs/core/webgpu. This month it got the tools to build real scenes: TSL composables in core, a WebGPU EffectComposer with six effects, and the four big Cientos components that were missing on WebGPU. Let's go 🚀.
TSL composables are here
In October we said they were in review. Now they ship in @tresjs/core@5.11.0 (#1545). @tresjs/core/webgpu has a set of experimental composables for TSL work:
useUniformsanduseUniformbind plain values, refs, getters or Tres Leches controls to TSL uniforms. A change writesuniform.value. There is no graph rebuild and no shader recompile.useNodesshares node graphs (noise, functions, varyings) between components in the same canvas. The graph is built once.useLocalNodesbuilds the graph of one component from the shared uniforms and nodes. It rebuilds only when the structure changes.useRenderPipelinerenders the canvas through three'sRenderPipeline, for post-processing on WebGPU.
The rule to remember: a value goes in a uniform, a structure change goes through a rebuild. If a prop changes a color, a strength or a speed, put it in a uniform:
<script setup lang="ts">
import { useLocalNodes, useUniforms } from '@tresjs/core/webgpu'
import { useControls } from '@tresjs/leches'
import { color, mix, positionLocal, sin, time } from 'three/tsl'
const { tint, speed } = useControls({
tint: '#82dbc5',
speed: { value: 1, min: 0, max: 5 },
})
const { uTint, uSpeed } = useUniforms({ uTint: tint, uSpeed: speed })
const { colorNode } = useLocalNodes(() => ({
colorNode: mix(
color('#fbb03b'),
uTint,
sin(time.mul(uSpeed).add(positionLocal.y.mul(4))).mul(0.5).add(0.5),
),
}))
</script>
<template>
<TresMesh>
<TresTorusKnotGeometry :args="[0.6, 0.2, 128, 32]" />
<TresMeshStandardNodeMaterial :color-node="colorNode" />
</TresMesh>
</template>
Move the sliders: the color and the speed change, and the material does not recompile. In on-demand render mode, a change from a ref or a getter requests a new frame.
Each canvas has one store for uniforms, nodes and passes. Use a scope name to keep entries apart, for example useUniforms({ uHealth: 100 }, 'player'). The API can still change in a minor release. Everything is in the TSL composables guide.
Post-processing on WebGPU
@tresjs/post-processing has a new /webgpu entry, built on useRenderPipeline. It came in three steps:
EffectComposeranddefineEffect(#1554, 3.12.0). The composer chains TSL effects as Vue components, in slot order.- HDR and LDR stages (#1557, 3.13.0). HDR effects run before tone mapping, LDR effects run after it. So FXAA, SMAA and film grain get display colors.
- Six effects (#1564, 3.14.0):
Bloom,ChromaticAberrationandDepthOfFieldin the HDR stage,FXAA,SMAAandFilmin the LDR stage.
<script setup lang="ts">
import { TresCanvas } from '@tresjs/core/webgpu'
import { Bloom, EffectComposer, SMAA } from '@tresjs/post-processing/webgpu'
</script>
<template>
<TresCanvas :antialias="false">
<!-- Your scene -->
<EffectComposer>
<Bloom :strength="1" :threshold="0.8" />
<SMAA />
</EffectComposer>
</TresCanvas>
</template>
The stage wins over the slot order: <SMAA /> before <Bloom /> still runs bloom first. In development, the composer warns once when an LDR effect comes before an HDR effect.
A prop change writes a uniform, so it does not rebuild the graph. An add, a remove or a reorder (v-if, v-for) builds the graph again and compiles a new shader. To switch an effect on and off often, set a prop such as amount to 0 instead.
Write your own effect
defineEffect returns a Vue component. Each prop becomes a uniform with the same name:
import { defineEffect } from '@tresjs/post-processing/webgpu'
import { vec4 } from 'three/tsl'
const Posterize = defineEffect({
name: 'Posterize',
stage: 'ldr',
props: { levels: 4 },
create: (input, { uniforms }) =>
vec4(input.rgb.mul(uniforms.levels.sub(1)).round().div(uniforms.levels.sub(1)), input.a),
})
@tresjs/post-processing/webgpu needs three r183 or newer and @tresjs/core 5.11 or newer. The prop names and defaults follow the three TSL nodes, not the WebGL components. For example, DepthOfField.focusDistance is in world units, but DepthOfFieldPmndrs.focusDistance is a normalized depth. Each effect page lists the differences.The full API is in the WebGPU post-processing guide.
Cientos: the big four on WebGPU
In October, ContactShadows, MeshTransmissionMaterial and MeshPortalMaterial were on the "not ported yet" list. In @tresjs/cientos@5.13.0 they work on WebGPU, and MeshReflectionMaterial came with them. Same names, same props, you only change the import path:
import {
ContactShadows,
MeshPortalMaterial,
MeshReflectionMaterial,
MeshTransmissionMaterial,
} from '@tresjs/cientos/webgpu'
ContactShadows(#1568) renders into a genericRenderTargetand blurs with TSL node materials. It is the base forStageandSoftShadowson WebGPU.MeshTransmissionMaterial(#1565) extendsMeshPhysicalNodeMaterialand mixes the refracted samples in throughbackdropNode.MeshPortalMaterial(#1567) uses a TSL window material. Theblendcross-fade works on WebGPU and on the WebGL2 fallback.MeshReflectionMaterial(#1569) extendsMeshStandardNodeMaterial. Blur, depth and distortion are uniforms, so switching them on or off does not remount the material.
These four use FBOs, so useFBO and Fbo in @tresjs/cientos/webgpu now create a generic RenderTarget (#1556, 5.12.0). The props and options do not change, but the /webgpu useFBO now returns Ref<RenderTarget | null>. On a WebGPU canvas, samples: 1 logs a warning, because it slows three r186 to about 1 fps.
Each WebGPU port shares one shell with its GLSL version (useContactShadows, useMeshReflectionMaterial...), so both renderers get the same fixes from now on. The list of what is still GLSL only is in the Cientos WebGPU guide.
Core: extend learns two tricks
@tresjs/core@5.12.0 gives extend two options for libraries that ship classes through it.
A default attach (#1558). Materials, geometries and fog attach to their parent automatically. Other classes that are not an Object3D needed an attach prop. Now the class can bring its own:
import { extend } from '@tresjs/core'
import { FollowBody } from 'some-camera-library'
extend({
FollowBody: {
object: FollowBody,
attach: (parent, child) => parent.setBody(child),
},
})
<TresFollowBody /> now attaches itself. An attach prop still overrides the default.
Props that Tres assigns (#1560). When you changed :target="pointA" to :target="pointB", Tres wrote the values of pointB into pointA. Your pointA changed without you asking. Now Tres assigns pointB, and pointA keeps its values. Arrays and color strings go into a clone that Tres owns. For a value that came from args, list the prop in assign:
extend({
Follower: {
object: Follower,
assign: ['target'],
},
})
Both are in the Extending the catalogue guide.
Rapier: colliders on the mesh, not on the origin
@tresjs/rapier@1.5.0 puts automatic colliders on the centre of the mesh bounding box (#1570). Before, they sat on the mesh origin. A model with its origin at the base or at a corner (a typical Blender export) got a collider that floated next to it.
- Cuboid, ball and capsule colliders add the bounding-box centre to their position. The mesh rotation and scale apply to this offset.
- A change of the
colliderprop recalculates the args and the position, not only the shape. - A group is measured in its own space, so its transform no longer applies twice.
trimeshandconvexHullstay at the mesh origin, because their vertices already carry the offset.
See Automatic colliders for the details.
Fixes worth knowing about
Core
useLoop priority works across components (#1559). Priority sorted only the callbacks of one useLoop() call. So a camera rig with priority: 100 in one component could still run before a mover with priority: 0 in another. Now all onBeforeRender and onRender callbacks of a TresCanvas share one sorted list. Callbacks with the same priority run in the order of their useLoop() calls, as before.
Cientos
MeshTransmissionMaterialwithtransmissionSampler(#1566). OnWebGLRenderer, the mesh disappeared, because the sampler shader did not compile. Now it shows the scene through the mesh.MeshReflectionMaterialwith two reflectors (#1569). Two reflectors with the same props (a floor and a wall) showed the same reflection. Each one now compiles its own material. A texture map that you add after mount now shows too.
MeshTransmissionMaterial: thetransmissionandbacksideprops now take effect. Before,transmissionstayed at 1 and the back-face pass was overwritten.MeshPortalMaterial: theblendcross-fade now applies tone mapping and the output color space. It looked too dark before.ContactShadows: the blur now covers the full target, so the output changes a little whenwidthorheightis not 1.useLoop: apps that use different priorities in different components can see a different callback order.extend: a prop change no longer writes into your previous object. If your code relied on that, assign the values yourself.
Everything in sync
These are the latest versions:
@tresjs/core@5.12.0@tresjs/cientos@5.13.0@tresjs/nuxt@5.10.0@tresjs/post-processing@3.14.0@tresjs/rapier@1.5.0@tresjs/leches@1.3.3
pnpm up @tresjs/core @tresjs/cientos @tresjs/nuxt @tresjs/post-processing @tresjs/rapier @tresjs/leches
👉 Full Release Notes
From the community
Andrés Salazar's portfolio

Andrés Salazar is a creative developer from Colombia. Their portfolio is built with TresJS and collects their interactive experiences, games and websites, plus their experiments. It is the newest entry in our showcase. Go and play with it 🇨🇴.
Klipp
Klipp is a camera toolkit for the web from pmndrs, made by
Łukasz Kwas and inspired by Unity Cinemachine. You describe shots as virtual cameras, and Klipp picks the one with the highest priority and blends between them.
@pmndrs/klipp@0.19.0 adds initial support for TresJS, in a new @pmndrs/klipp/tres entry (#161). We worked on it together with the pmndrs folks (#159), and it is a lot of fun to see a pmndrs library speak Vue 💚. This first version has <Klipp>, <VirtualCamera>, Body.Follow, Aim.HardLookAt and the useKlipp and useVirtualCamera composables:
<script setup lang="ts">
import { Aim, Body, Klipp, VirtualCamera } from '@pmndrs/klipp/tres'
import type { Mesh } from 'three'
import { shallowRef } from 'vue'
defineProps<{ cutscene: boolean }>()
const capsuleArgs: [number, number, number, number] = [0.4, 1, 8, 16]
const followOffset: [number, number, number] = [0, 3, 8]
const cutsceneOffset: [number, number, number] = [-6, 1, 3]
const player = shallowRef<Mesh>()
</script>
<template>
<TresPerspectiveCamera :fov="50" />
<TresMesh ref="player">
<TresCapsuleGeometry :args="capsuleArgs" />
<TresMeshNormalMaterial />
</TresMesh>
<Klipp>
<VirtualCamera name="follow" :priority="10">
<Body.Follow :target="player" :offset="followOffset" :damping="0.5" />
<Aim.HardLookAt :target="player" />
</VirtualCamera>
<VirtualCamera name="cutscene" :priority="20" :active="cutscene">
<Body.Follow :target="player" :offset="cutsceneOffset" :damping="0.3" />
<Aim.HardLookAt :target="player" />
</VirtualCamera>
</Klipp>
</template>
Turn on cutscene and the camera blends to the second shot. Turn it off and it blends back. Klipp needs @tresjs/core@5.12.0 or newer, because it runs its update last with a high useLoop priority, and that only works across components since #1559. The other Bodies, Aims, extensions and KlippControls are next.
Thanks
Thank you to Andrés Salazar for sharing their portfolio with us, and to everyone who opened an issue or tested the WebGPU entries this month 🙌. Your reports shaped what landed.
Coming next
The WebGPU entries grow one component at a time. Next on the list: Stage and SoftShadows on top of the new ContactShadows, and more effects for the WebGPU composer. If there is a component or an effect you need on WebGPU, tell us.
Got something cool built with Tres? Share it in our Discord. It might headline the next Loop Chronicles.
Happy crafting ✌️.