From a shader to a SurfaceGui
same knobs · no pixel shadersIn Unreal, everything happens per pixel inside one material. In Roblox, the plane just behind the glass carries a SurfaceGui (2D UI drawn on a part’s face). Every shader input becomes a UI layer, and every shader computation becomes a few property writes from one client script, which reads its settings from attributes named after the original material parameters.


SurfaceGui.Brightness, unlit (LightInfluence 0)Parallax without pixels
7 painted layersUnreal’s bump offset shifts texture lookups by the view vector. Here the same idea moves whole layers: the camera is brought into the plane’s local space, and each layer slides by the view angle times its depth, clamped to the margin Interior Zoom leaves. Far layers slide most and near ones barely move, so the street shifts against the frame and blinds like a real view.
local rel = painting.CFrame:PointToObjectSpace(camera.CFrame.Position) local tanX = math.clamp(-rel.X / -rel.Z, -1.5, 1.5) local room = (InteriorZoom - 1) / 2 * 0.98 -- slide margin layer.Position = 0.5 + math.clamp(tanX * depth + wobble, -room, room) -- y likewise
A cubemap does not split into depths, so the scene became seven separately painted layers, from sky to street. A first pass cut one painting into bands by colour, and anything crossing a band, such as the water tower, tore apart as the bands slid. Painting each depth as its own image keeps every building whole.


Glass & rain
no particles- Streaks: two layers of droplet tiles that scroll and wrap by exactly one tile, so panning never seams. Bands fall at different speeds, so the rain never reads as one sheet.
- Drops: round drops that fade in, hold and fade out at their own pace, then reappear elsewhere.
- Refraction: each painted layer wobbles on its own pair of sines, so the layers drift against each other like water distortion.
- Outside: diagonal rain and small Roblox-style walkers sit at street depth, so they parallax with the street.


Neon & lightning
3 sines · 3 strike patternsEach neon tower flickers on three sine waves at unrelated frequencies (a slow breath, a buzz and a fast jitter) with a cutoff for dropouts, and its own phase so nothing blinks in sync. To make painted neon switch off, the tubes were split out of the art into a base with the tubes off, the lit tubes, and a blurred glow, which gives bloom without post-processing. Lightning fires random bursts of pops and dips rather than a fade, and briefly drives a flash plane, exposure, colour correction and the neon together, then restores every value exactly.



Trade-offs & budget
phone-firstPer-layer parallax instead of a per-pixel room box; refraction as layer wobble; no additive blending, so the exposure spike supplies the overblow; emissive from GUI brightness plus baked glow.
Updates at 30 Hz, only while the window is on screen and within 120 studs, at about 15 property writes per tick. No particles, render targets, shadows or added lights beyond one neon spill light.
Glass material hides SurfaceGuis behind it, so the pane is clear plastic with a UI tint. ImageColor3 can only darken, so sprites that light up in a flash are authored white and tinted down.
Every value is an attribute on the window model, grouped like the Unreal material: Interior, Rain, Outside, Glass, Neon, Lightning and Budget.
Roblox Studio · client-side Luau · original effect: the Oracle window material in Unreal Engine