Add-on · Godot 4.7.2
Godot Retro 3D Look
PS1-style materials and a low-res 4:3 CRT/VHS screen for Godot 4: vertex snap, affine textures, 15-bit dither, fog and 20 presets.
Pro Sold on itch.io · Pro License: no credit needed
Serving suggestion
- Buy it on itch.io, download template.zip and unzip it where your project will live.
- Install Godot 4.7.
- Open the folder with your agent and say something like:
This is a PS1-style 3D material kit for Godot from CodePlate. Read AGENTS.md, then help me put this look on my own game. My project is in ./my-game and my level is res://levels/warehouse.tscn. I want the Horror preset as the starting point.
A PS1-style 3D kit for Godot 4.7, built so your AI agent can put it on your game: seven materials, a converter for your existing materials, per-object overrides, a low-resolution 4:3 screen with 15-bit dither and CRT/VHS effects, and 20 presets.
What's inside
- Seven materials:
retro_lit(per-vertex light from the scene, no specular),retro_unlit,retro_cutout(alpha scissor),retro_transparent(scrolling UV),retro_chrome(sphere-mapped shine),retro_glow(additive, soft edges) andretro_shadow(a flat round blob). - Your scene's lights keep working. The lit materials use Godot's per-vertex lighting with
specular_disabled, so theOmniLight3Dtorches,SpotLight3Dlamps andDirectionalLight3Dsun you already have light the converted level; ambient comes from theWorldEnvironment. - The PS1 quirks, on every material:
- vertex snap on a grid set from the screen height
- affine texture warp with a 0–1 blend back to perspective-correct
- per-vertex fog with a colour and start/end
- draw distance (far fragments are not drawn)
- nearest or 3-point texture filtering
- texture colour bits per channel (5 bits = the PS1's 15-bit colour)
- vertex colours
- optional screen-door (dithered) transparency
RetroScreen: the 3D world renders in a SubViewport at a PS1 resolution (256x224, 320x240, 368x240, 512x240 or 640x480 interlaced) and is drawn back to the window as the 4:3 picture the console television showed — so 256x224, 368x240 and 512x240 have non-square pixels, with whole-number vertical scaling and fractional horizontal sampling, letterboxed/pillarboxed. The camera renders at the display shape, so circles stay round in every mode. Setdisplay_aspect = 0for square pixels instead. On top of the picture: 15-bit colour (or an optional 1-rowpalettetexture up to 256 colours, snapped by plain RGB distance while ignoringcolour_bits) with a 4x4 ordered dither, CRT (curvature, shadow mask or aperture grille, scanlines, vignette), VHS (tracking wobble, chroma shift, noise, the head-switching band, tape tint), composite colour bleed and interlace. UI outside the screen stays crisp.RetroLook.convert(level)turns everyStandardMaterial3Dinto the matching retro material, keeping texture, colour, UV scale/offset, transparency, alpha scissor, unshaded, additive blend and billboard. It returns how many it converted.RetroOverride: per-object snap, warp and fog overrides, plus a render-layer override so a light's cull mask can include or leave out one object, with the parent's materials duplicated so nothing else changes.RetroLook.turn_off(screen, level)/turn_on(screen, level): the "PS1 mode" switch. Off is full window resolution with no colour cut and no effects, and the materials revert to perspective-correct, no snap, no warp, no fog and no draw distance; on restores exactly what was there.RetroLook.bake_textures(paths, size, colours): shrinks textures to 64/128/256 on the longest side with nearest sampling and cuts them to 16 or 256 colours with a median cut, writing<name>_retro.pngbeside each source. An optional editor menu does the same (Project > Tools).- 20 presets in one JSON file shared with the Unity package: PS1 Default, 480i, Subtle, Crunchy, Late 90s, Handheld, Arcade CRT, Living-room TV, VHS Tape, Camcorder, Horror, Fog Town, Night, Basement, Underwater, Toxic, Blizzard, Sunset, Flashback and Off.
Try the demo: Pine Rest Motel at night
A one-storey roadside motel in the rain: six numbered doors, a brick office with a lit window and a bell, a tall neon sign whose last letter flickers, a fenced pool, a vending machine and an ice machine glowing under the walkway roof, a car park with painted bays and three old cars, a road, telephone poles, pines behind the roof, and fog that closes in past the lot. Every model and texture is built by tools/art/motel_art.py — no downloaded art.
- Install Godot 4.7.
- Open this folder as a project and press Play:
``
godot --path .`` - WASD (or Up/Down) walks, mouse drag looks around, and click or tap the ground to walk there; Left / Right (or the on-screen arrows) step through the presets. P switches the whole look off and on, T runs a scripted tour past the sign, the rooms, the machines and the pool, and H returns to the media camera's spot.
- The panel at the bottom right toggles the parts of the look one at a time: snap, warp, dither, colour depth, fog, draw distance, CRT and VHS. The top panel names the preset and its number and is crisp at the window's resolution, outside the 320x240 picture.
The demo is a real level: the models arrive as ordinary glTF with StandardMaterial3D materials (demo/motel.gd marks the neon, lit windows, machine fronts and lamps unshaded and tints the two sedans), and main.gd calls RetroLook.convert() on the lot and prints how many surfaces it converted. That is the recipe to copy for your own game.


Put it in your own game
Copy the folder addons/retro_look/ into your project at the same path (res://addons/retro_look/) and run the import step once. There is no autoload; the one editor plugin (the texture-bake menu) is optional. Then, when the level's meshes exist:
var screen := RetroScreen.new()
add_child(screen)
screen.viewport.add_child(level) # the level, with its camera inside it
var converted: int = RetroLook.convert(level)
RetroPresets.apply("ps1-default", screen, level)
Your existing OmniLight3D, SpotLight3D and DirectionalLight3D nodes stay in charge of the lighting (per vertex, no specular), and the WorldEnvironment supplies the ambient. addons/retro_look/AGENTS.md is the full API, settings, screen and materials reference for you and your agent. AGENTS.md at the project root is the brief for working on this demo project.
Checks
This template ships three sets of checks.
The headless ones run anywhere:
godot --headless --path . --import
godot --headless --path . --script res://addons/codeplate/checks/run.gd
They compile every shader and check its uniforms, validate presets.json against its schema, convert a sample level and read each promised property back, prove RetroOverride is local, check every screen parameter applies to RetroScreen, prove turn_off/turn_on restore every material and screen setting, bake textures to the right size and palette without touching the source, and check the add-on folder is self-contained. The motel's own checks verify that demo/art-manifest.json matches every file in demo/art/ (rerun python3 tools/art/motel_art.py . after an art change), that every model loads and every surface has a material, that the scene stays under its 15,000-triangle budget, that convert() converts every StandardMaterial3D surface and leaves the emissive faces unlit, and that the buildings, fence, cars and machines have collision boxes.
The render checks need a display and test properties rather than pixels:
godot --path . --script res://tools/render_checks.gd --rendering-driver vulkan
godot --path . --script res://tools/render_checks.gd --rendering-driver opengl3
They prove snapped vertices sit on the grid, affine and perspective renders differ (and perspective matches Godot's own), fog reaches its colour on unlit and lit surfaces, draw distance hides a far object, 5 colour bits leaves at most 32 levels per channel, and screen-door dithers in a 4x4 pattern. For the screen they prove each resolution mode draws square blocks of its size (square pixels), the 4:3 picture rect is right and a sphere is round in every mode, one scanline per source row, 15-bit caps a gradient at 32 levels with a 4x4 dither, palette mode snaps every picture pixel to the palette with 4x4 dither and palette = null matches an untouched screen, every effect changes the frame and turning it off restores it exactly, CRT curvature blacks the picture's corners and leaves the centre, scanlines follow the picture rect, the VHS head-switch band stays at the bottom of the picture, interlace differs only on alternate rows, the look off matches a plain StandardMaterial3D render (pixel for pixel for unshaded materials, within 3/255 for lit flat faces), and UI outside the screen stays at full resolution. The images go to shots/.
The frame-time check runs the motel's tour for 10 seconds in a 1024x768 window with vsync off and every effect switch on (320x240 with CRT, VHS, dither, fog and the rest), and fails above a 16.7 ms average:
godot --path . --script res://tools/perf_check.gd --rendering-driver vulkan
godot --path . --script res://tools/perf_check.gd --rendering-driver opengl3
Version 0.4.0
- Palette mode: set
RetroScreen.paletteto a 1-row image (up to 256 colours) and the picture snaps to its nearest colours after the 4x4 dither. Two example palettes are inaddons/retro_look/presets/palettes/, anddocs/recipes/use-a-colour-palette.mdshows how. With no palette set, the screen draws exactly as in 0.3.1.
How this add-on was made
Written for CodePlate with AI coding agents (Claude, by Anthropic); IASoft reviewed and tested it. The shaders and scripts are original, written from scratch against the engine's documented APIs; every model and texture in the motel is built by tools/art/motel_art.py from primitives and a hand-written pixel font (the two test textures by tools/art/checker_texture.py). The checks run on every change; both render drivers above passed on the development PC.
License
This is a Pro CodePlate add-on. You may use, modify and ship games made with it, including commercially; you may not resell or redistribute the add-on itself. See LICENSE.md.
Made by CodePlate.
For agents
itch.io page: https://codeplate.itch.io/godot-retro-3d-look
Pro template, sold on itch.io: you can't buy or download it yourself. Ask the user to buy it there, download template.zip, and give you the zip or the unzipped folder.
Verify with: godot --headless --path . --import && godot --headless --path . --script res://addons/codeplate/checks/run.gd