All work

Technical art case study · WebGL

AquaJoy Retro

Technical art for a 3D interactive experience built for WebGL: procedural shaders, custom physics, production tools, and optimization for browser and mobile platforms.

AquaJoy gameplay reel · URP WebGL
Focus
Technical art, real-time graphics
Stack
Unity, URP, C#, Shader Graph
Target
WebGL, mobile, 60 FPS
Build
Under 18 MB
  • Technical Art
  • Unity URP
  • Shaders + C#
  • WebGL
01

Shader: confined liquid

Shader Graph + C#-driven motion

Problem

The first prototype used Voronoi noise, but the result looked like an open volume of water and failed to capture the feeling of liquid contained inside an acrylic toy.

Solution

I developed a translucent shader with a procedural surface cutoff, Fresnel, and inertial motion driven by C#.

Result

A more controlled and responsive liquid effect without requiring additional geometry to represent the water surface.

URP Shader Graph

Surface + Fresnel

The liquid surface is defined procedurally using operations such as Step and Lerp, while Fresnel strengthens the readability of the material edges.

Inertial wobble FX

Inertial motion

C# calculates the motion and feeds the shader through the _WobbleX parameter. The same logic responds to player input on PC and device tilt.

02

Physics: impulse & placement

Custom forces + geometric validation

Instead of relying solely on colliders to determine the outcome of the interaction, the mechanic combines custom forces with geometric validation. This provides control over both the physical feel and placement accuracy.

Debug: colliders & forces
01Custom force falloff

Distance-based force

The two nozzles apply impulses in opposing directions. Force decreases based on the distance between the ring and the application point, producing a more predictable and controllable response.

F = BaseForce × (1 - distance / radius)
02Outside peg bug

Geometric placement validation

Traditional colliders could register a ring even when it was positioned outside the peg. The solution compares the relative position of the ring and peg on the XZ plane before confirming placement.

03Stable gameplay

Damping for placed rings

Once placed, the physical impulse is damped to prevent players from accidentally moving already-positioned rings while trying to place the next ones.

03

Tooling: level bridge

Custom editor + JSON data pipeline

Problem

Creating and testing levels directly inside scenes increased manual work and made the project dependent on multiple heavy scene files.

Solution

I developed an Editor Tool capable of loading level data through JSON and updating the Scene View without entering Play Mode.

Result

A faster workflow for testing level variations while keeping level data separate from scenes and reducing manual setup.

Unity editor · custom inspector

Level switching, no Play Mode

JSONExample: level data
{
  "levelId": 2,
  "stagePrefabName": "Stage_Level_02",
  "backgroundTextureName": "M_Level2_BG",
  "ringCount": 8,
  "basePushForce": 13.0
}

Data-driven workflow

The LevelBridgeEditor locates level data inside Resources/Levels, exposes level selection through the Inspector, and uses PrefabUtility to update the Editor preview.

04

Optimization: vertex attribute masking

Vertex color / attribute splitting + WebGL performance

Vertex color / ID mask

1 material = 1 draw call

Two surfaces. One material.

The peg contains visually different regions, but they did not require separate materials to represent that difference.

The solution was to use vertex attributes as masks inside Shader Graph, allowing different regions of the same mesh to activate different shading behaviors.

  • Attribute 0: opaque shading for the base.
  • Attribute 1: translucent treatment, color, and Fresnel for the upper region.

Result: different visual responses within the same mesh using 1 draw call.

WebGL target
60 FPSWebGL target
Material per pin
1Material per pin
Web build
< 18 MBWeb build
Data-driven levels
4Data-driven levels
05

What this case shows

Real-time graphics

Procedural shaders, translucent materials, Fresnel, vertex attributes, and gameplay-driven visual effects.

Technical systems

Custom physics, geometric validation, damping, and code-driven interaction systems.

Production tools

Editor tooling and a data-driven pipeline designed to reduce manual work and accelerate content creation.

Performance

Material and rendering optimization designed around WebGL and mobile performance constraints from the start.

Want to see it running?

Open the build on desktop or mobile.

It is the same WebGL build the case study describes, running in the browser.

Next case · Built with AI + MCP

X-Caboquinho