Food for Fish
Food for Fish is a point-and-click adventure for the browser by the Belgian graphics programmer Kris Temmerman. Wanting to see what WebGPU could already do when it had only just arrived in browsers, Temmerman wrote a small engine and then used it to make this game with a story. The bald little hero is hunting for the golden underpants of Genghis Khan that his grandfather chased all his life. To finish the story, visitors pass through every scene in the game, and so they see every kind of light the engine can draw.
The game credits a single maker, Kris Temmerman. It won FWA of the Year for 2024.

01Concept
WebGPU was first switched on by default only in spring 2023, in Chrome 113, while Firefox and Safari were still catching up. Kris Temmerman gives the reason described above in the note inside the game's menu, and puts the word "game" in quotation marks there. The FWA's description of the project is a single line that also calls it a WebGPU experiment.
However, the author did not turn the experiment into a tech demo page but into a point-and-click adventure with a story. The game's quests send visitors back and forth between the living room, the lab and the garden, and finally back to the garden at night. The game also makes a joke of the engine experiment itself. The job the little man takes on is an "underwear simulator" for an ad agency. Each step he takes at the computer to build it shows how a 3D picture is rendered.
The story opens with a monologue in which the little man says his grandfather died two years ago after a lifetime hunting Genghis Khan's golden underpants, while he himself only builds websites and nothing much ever happens to him. He then reads an email in which the ad agency asks for the underwear simulator, but he decides to feed the fish first. Every clue after that leads to a pair of underpants. When the fish have been fed, they leave him a gift that turns out to be his grandfather's old pair. Another pair, lost by a hunter, lies hidden in the woods. Once the simulator is delivered, the agency mails him a package with underpants inside. A bird house blown crooked by the wind then drops a girl's underpants, and a glowing flower lets his invention make a pair that glows. With all of them collected, the little man has his milling machine cut a key, opens his grandfather's locked bookcase with it and reads the letter his grandfather left inside. At night he finally digs up his grandfather's grave and finds the golden underpants, and the game ends on "THANKS FOR PLAYING!!".
The game sets its pace with one small task after another, so visitors only ever need to work out the next step. The little man's lines say what comes next, for example that he should feed the fish before going out, or that he should make a key before he can open the bookcase. The game never makes visitors sit and wait for a task that takes time. Such a task finishes only when visitors come back to the lab after doing something else, which is how the key and the little man's invention work. The next object to find gives off a small sparkle every three to six seconds. If visitors are stuck, the little man also mutters a reminder of the next step when he stops walking.
The game screen has only two fixed controls, a cardboard tag reading INVENTORY at the top left and a menu button at the top right. Clicking the INVENTORY tag drops down a tray holding the underpants collected so far. The menu holds volume sliders for music and sound effects, the author's note, a link to the source code on GitHub and a Develop checkbox. The label beside the checkbox reads spoilers! crash warning!, meaning that turning it on gives away the story and may crash the game. Turning Develop on opens the engine's own developer panel at the top left, where visitors can step through the layers that make up the picture, tune the lighting and image quality, and change the progress of every quest line directly. In this way the author made the engine's debugging tools part of the site's content, there for any visitor who wants a closer look.
02Design
The rooms and the garden of the game each look like a miniature model sitting on a table. The living room and the lab both lack the wall facing the visitor, and the camera always looks straight in, as if through glass into a cut-open dollhouse. The two rooms are in fact the left and right halves of one model. The garden is a long side view, with the woods and the grandfather's grave on the left, the pond in the middle and the little man's house on the right. A cut-away slice of soil forms its front edge. The opening and the ending are set in a grey photo studio that holds only the little man and hand-written words, kept apart from the rooms of the game.
Lighting is what differs most from one scene to the next, and each scene has its own lighting setup. The living room has a ceiling lamp, a wall lamp and a table lamp in warm orange (#FF955C, #FF914A and #FFB574), which make the red armchair, the wooden bookcase and the potted plants glow warmly. The lab has a blue bulb (#103DF8), a red lamp and a cyan-green lamp, so its wall shades from rose to blue-violet to teal while a flask on the table glows fluorescent green. The garden has daylight under a sky that fades from deep blue at the top (#007ABD) to pale blue near the horizon (#8CD6EB), with the hills and trees in the distance blurred into soft colour. At night the garden turns deep blue, and most of the light comes from the lantern by the grave. Whenever the little man wears the glowing underpants, a ring of green light also appears around him.

The art direction aims for the feel of a handmade model, and the props help tell the story. The little man looks as if he were sculpted from clay, with fine bumps on his skin and a rash on his chest. His face is drawn with the fewest possible marks, and two white round eyes, two black pupils and one line for a mouth are all it has. Among the framed pictures on the living room wall are a map of the Mongol empire with a red dotted route and a sepia picture of underpants.
The INVENTORY tag, the menu, the icons and the package cards of the game all look hand-drawn on cardboard, which sets them against the realistically lit 3D scenes. The INVENTORY tag and the menu button are two pieces of cardboard, and the menu itself, once open, is a ragged cardboard card with a drawing of a smiling fish. At the bottom of the menu, the author has written a line of small print saying they are a developer and asking visitors to excuse the developer-style writing and art. When the cursor rests on an object that can be used, a cream outline appears around the object, and a small cardboard icon appears beside the cursor. The icon shows what a click will do. An eye means looking, a foot means walking over and an arrow means going to the other room, while a fish, a flower, a key or a shovel means using an item the little man carries.

Each time the little man finds a pair of underpants, a cardboard package card drops into the middle of the screen, and most of these cards parody a kind of product packaging. The grandfather's pair is "ORGANIC PANTS" next to a drawing of a cow labelled FREE RANGE. The hunter's pair is "AR17-TACTICAL" military-grade underwear. The pair from the ad agency comes on a card with a hand-drawn football star and the words "FANCY $$$ PANTSY", while the card for the girl's pair reads "Live Laugh Buy now" and "dermatologically tested". These four cards are put together the same way, with a halftone photo of the underpants cut out and stuck on each. Marker doodles and the words "MADE IN CHINA" surround the photo, and the same "USE PANTS" button sits at the bottom right. Some of the cards also have blacked-out words.

The little man's lines appear beside him in Georgia, a serif typeface. The text is white, with key words in gold (#E6CC80) such as GRANDPA, GOLDEN UNDERPANTS and UNDERWEAR SIMULATOR. Every letter also carries a very dark brown edge, so visitors can read the lines on a bright wall or in shadow. The lines always appear on the side of the little man that faces the middle of the screen, so the edge of the frame never cuts them off. The game title, the closing credits and the large words in the menu are hand-written strokes that match the cardboard interface.
The game is designed only for desktop browsers that support WebGPU. On a laptop screen 1366 pixels wide, the scenes scale down and the layout stays the same as on desktop. When the browser window is very narrow, the game zooms the room out so that all of it fits on screen, and it hides a potted plant in the corner of the living room. On phones and tablets the game never starts, and the screen shows a single picture instead. The picture shows the little man with his coffee and a line of apology, "Sorry, No mobile for now :( Try it on a desktop with browser that supports WebGPU, like Chrome."
03Motion
When a visitor opens the site, the screen stays black for a while, and then the little man appears out of the dark within a second, slowly at first and quickly at the end. Two seconds after he appears, the title FOOD FOR FISH starts writing itself stroke by stroke and finishes in about three seconds, slower at the first and last strokes than in the middle. A line is then drawn under the title, and this line is really the loading bar, growing with the download in the background and retracting from one end to the other once the download is done. Throughout this time, steam rises from the little man's coffee and sways gently. When the game moves from the opening studio into the lab, the picture darkens over a second and a half, stays black for a second and brightens again over three seconds.
The game's camera follows the visitor's cursor the whole time, and at times it also moves with the little man. Moving the cursor to the left turns the whole scene slightly to the left, and moving it to the right turns the scene to the right. Near and far objects shift against each other as if seen through a window from different angles. The camera chases the cursor quickly at first and then more slowly, and it has almost caught up less than a second after the cursor stops. In the garden the camera also follows the little man sideways with a slight lag, and it stops at the edge of the garden when he reaches either end. When the little man goes to the other room, he first walks to the door between the two rooms, and the camera then pans next door in about two seconds, quickly at first and slowing at the end.
When a visitor clicks the floor or an object, the little man turns toward the target over half a second and starts walking halfway through the turn. He walks in a straight line at a constant speed and turns to face the target when he arrives. His standing and walking animations blend into each other over half a second.
When the little man speaks, his lines slide out a little from beside him and fade in within half a second. The first ten characters of each line appear at once, and the rest type out at about ninety characters per second. Each click brings up the next line, with a soft click sound.
The underwear simulator sequence is where the game acts out the 3D rendering process for visitors. The little man stands at his computer and starts typing, and with each click the picture in the air of the lab moves one step further. A single glowing triangle appears first, then a cloud of glowing triangles, then the triangles join into a wireframe of underpants, which gets a pattern and then shading before the finished pair appears on the laptop screen. Each step comes with a line, from "Let's start with rendering a triangle!" to "and it's done", so visitors click their way through the whole rendering process themselves.

The scenes are full of small movements that need no input from visitors. The little man himself blinks every few seconds, and his pupils glance to the side now and then. Two fish swim along random paths in the pond with their tails swinging. Leaves keep falling in the garden, and the grass and the foliage sway gently in the wind. Waveforms run across the oscilloscope screens in the lab, and the digital display of an instrument on the shelf shows the game's current frame rate. When the milling machine cuts the key, its cutting head and table move back and forth, and the sparks from the cut flicker and light up the area around the machine. At night, while the little man walks around in the glowing underpants, the ring of green light mentioned earlier moves along with him.
The game's menu card and package cards drop in with a slight bounce. They fall from a little above with a whoosh sound, overshooting slightly within a third of a second before they settle. As a card drops in, the scene behind it blurs and darkens by half within half a second, so the eye goes straight to the card. Closing a card sends it up and out within a tenth of a second. When a visitor clicks USE PANTS, the little man hitches the underpants up, his underpants change to the new pair at once, and he says a line such as "Looks great on me!".
04Engineering
The game uses no ready-made engine such as three.js. Every frame is drawn by a WebGPU engine that Kris Temmerman wrote in TypeScript, and the source code of both the engine and the game is public on GitHub. The page contains nothing but one WebGPU canvas. At startup the engine asks the browser for the high-performance GPU and requires two optional texture features. If the user agent reports a phone or tablet, or the WebGPU request fails, the page draws the apology picture described earlier on a 2D canvas instead, with one version for wide screens and one for tall ones.
The engine uses deferred rendering, so each frame starts by writing the scene's colour, normals, metalness and roughness, emission and depth into a set of G-buffers. It then computes ambient occlusion in compute shaders, based on Intel's published XeGTAO, and denoises the result. Lighting is split into three passes, one each for the opening, the interiors and the garden, all using a GGX-based PBR model. Each of the six main lights indoors has its own cube shadow map. One of them updates its shadow every frame, and of the other five only those in the visible half of the room do. The sun outdoors uses two shadow maps, with the near one updated every frame and the far one every other frame by day, while at night the engine updates a cube shadow map for the lantern by the grave.

After lighting, the engine runs a series of post-processing passes. Screen-space reflections add the reflections on the floor and the water, transparent objects get a pass of their own, and depth of field follows the composite. The blur amount for depth of field is computed from depth and stored in the alpha channel of the frame. To blur the background behind an open menu, the engine simply turns these depth-of-field settings up. Bloom only picks up the parts brighter than a threshold, and a grade for exposure, contrast, saturation and vignette follows. FXAA then smooths the edges, and the lines of text and the cardboard interface are drawn last on the same canvas.
The cream outline around a hovered object is also a pass of its own. The engine draws the hovered object alone into a black-and-white mask, blurs it horizontally and vertically, and subtracts the original mask, which leaves only a ring around the object. While drawing the mask, the engine compares the object's depth with the depth in the G-buffer, so the parts of the outline hidden behind other objects are drawn fainter. When an object is made of several models, such as the box, door and flag of the mailbox, the models are outlined together.

The hand-written words are drawn with a low-cost technique, and the dialogue with a font atlas. The author drew the strokes of the title, the credits and the loading bar with a mouse inside the engine, and each stroke is stored as a string of dots. Each dot is drawn as an instanced quad whose shader keeps only a circle, so the writing animation simply raises the number of dots drawn. The strokes are written into the G-buffer along with the scene, which is why the lamps light them too. The dialogue's font atlas stores the Georgia glyphs as a multi-channel signed distance field (MSDF), so the lines stay sharp at any size.
The little man's face and the small motions in the scenes are also made with low-cost techniques. His eyes and mouth are computed in the face shader from a few circles and one line segment, and a blink only sets the radius of the eyes to zero. The fish follow paths from a noise function, while the plants sway by sampling a scrolling noise texture at their world-space positions, moving more the higher they are, with their shadows swaying along.
The author wrote the gameplay as a set of simple state machines. Each quest line has its own sequence of states. The fish line runs through start, fish food taken, fish fed, underpants shown and underpants taken. Every clickable object in a scene has a trigger that reads the current state to decide which icon to show on hover and which cutscene to play on click. The engine finds the clicked object by casting a ray from the cursor against simplified collision models. Every animation timeline in the game, the cutscenes included, runs on GSAP, so the Go fast switch in the developer panel only has to make GSAP's global time run five times faster to speed up the whole game.
The game's assets are exported from Blender as glTF and converted by the engine into its own binary data. Opening the site downloads about 31.8 MB in total, and the largest file is the garden scene data at about 11 MB. The WebP textures add up to about 12.1 MB, most of them 1024 pixels square, and every object has a colour map, a normal map and one texture that packs metalness, roughness and ambient occlusion together. The sound takes about 2.7 MB and is played through Howler, and about 2 MB of it is a recording of Variation 25 of Bach's Goldberg Variations.
These assets load in two batches, and the first holds only the little man, the opening scene, the font and the hand-written strokes, just enough for the title screen. The rooms, the garden, the textures and the sound load in the second batch, hidden behind the seconds in which the title is being written. When a visitor opens the site, the screen stays black until the first frame at 2.1 to 2.7 seconds. The little man appears at about three seconds, the title is fully written at about nine seconds, and the last textures arrive at around ten seconds.
From writing the G-buffer to finishing post-processing, each frame takes many render passes, and only the shadow passes change from scene to scene while the rest stay the same everywhere. The opening scene has the most passes per frame, because the cube shadows of all six indoor lights update there. Each light takes one pass for each of the six faces of its cube, and these shadow passes alone make up more than half of the opening's passes. Inside the rooms, the engine updates only some of those shadows in the way described above, so each frame takes 20 to 30 percent fewer passes than the opening. The garden has none of the indoor shadows to draw, and its frames take only a little over half the passes of the opening. If the frame rate stays under 30 per second for 100 frames in a row, the engine lowers its own quality by rendering its internal frames at CSS pixel resolution, while the canvas on screen keeps its size. On screens with a pixel ratio of 1, this changes nothing.
The game can only be played with a mouse, as the page has no element that can take focus and the game responds to no key. Screen readers only find the page title, and the page does not declare a language. The game never reads the system's reduced-motion setting, so every animation plays as usual when a visitor turns it on.
05Scores and Team
| Award | Source | Date | Score |
|---|---|---|---|
| FWA of the Day | The FWA | 2024-05-07 | 87 POINTS |
| FWA of the Month | The FWA | May 2024 | Monthly award, no separate score |
| FWA of the Year | The FWA | 2024 | Yearly award, no separate score |
The FWA filed the game under the Experimental and Game categories. The game's FWA of the Year was chosen by more than 500 jurors from the twelve FWA of the Month winners.
| Credit | Who they are | Track record (as of November 11, 2026) |
|---|---|---|
| Kris Temmerman | A freelance graphics programmer in Antwerp, Belgium, self-described as specialising in WebGL and WebGPU | FWA 4 |
Kris Temmerman made the engine, the game design, the art and the writing of Food for Fish alone. The closing credits add only one other name, Shelley Katz, whose recording of Bach is the game's music. The earliest commit in the project's GitHub repository dates from October 2023. In its readme the author admits that this was a first WebGPU project that got a little out of control, so the code is a mess. Kris Temmerman's other FWA award is an FWA of the Day in February 2026 for Stuff by Kris Temmerman, a personal portfolio built as a pirate game.
06Archive
- Award date
- 2024-05-07
- Awards
- The FWA FOTD 2024-05-07, The FWA FOTM 2024-05, The FWA FOTY 2024
- Site
- https://foodforfish.org/
- Credits
- Kris Temmerman
- Design
- spatial
- Build
- realtime
- The FWA
- 87 POINTS. https://legacy.thefwa.com/cases/food-for-fish
- Stack
- Own WebGPU engine (TypeScript), deferred rendering, XeGTAO ambient occlusion, MSDF text, Next.js, GSAP, Howler, gl-matrix, math.gl
- Total assets
- About 31.8 MB, of which scene and animation data is about 15.2 MB, WebP textures about 12.1 MB and sound about 2.7 MB
- Speed
- FCP 2,112 to 2,728 ms (black screen until then), title fully written at about 9 seconds, CLS 0. 60 fps in every scene