~/talk

How to Make Your TresJS Scenes More Realistic

Talkat Vue.js Nation 2025 · 2025-01-29..01-30· [creative-coding, web-animation]
slides:none on file

Starts from a plain sphere-and-floor scene and makes it photoreal by enabling shadows and PBR: set castShadow on the light and on the sphere, set the floor to receiveShadow, swap the basic material for tres-mesh-physical-material, drop roughness to ~0.1 and crank metalness for strong speculars, then add an HDR environment with the environment component (wrap in Suspense for async loading, use the “sunset” preset and set it as scene background). The result visibly reflects and casts realistic shadows.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.