Tron visual overhaul: fog, TronWall shader, HUD, minimap#3
Merged
AndrewAltimit merged 2 commits intomainfrom Feb 17, 2026
Merged
Tron visual overhaul: fog, TronWall shader, HUD, minimap#3AndrewAltimit merged 2 commits intomainfrom
AndrewAltimit merged 2 commits intomainfrom
Conversation
- Pure black background (clear color override for Tron) - Subtle dark grey grid lines instead of bright teal - Trail walls use gradient material: bright base fading upward - Own walls short (cycle-height) and solid; enemy walls tall and fading - Thinner trail walls (0.3) for cleaner look - Boundary walls taller with gradient fade - Oriented cycle bodies with arrow-like nose piece - Grinding spark effect when speed-boosting near walls - Lower, more dramatic chase camera (Armagetron-style POV) - Faster base speed (50), higher max speed (150), snappier turns - Vivid neon player color palette on black Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add distance fog (fades to black beyond 50 units), new TronWall fragment shader with bright top-edge highlight, player name labels projected from 3D to screen space, a 2D minimap canvas, and speed/rubber/brake gauges. Shader changes: - Vertex shader outputs v_fog_factor from camera distance - All 5 fragment shaders apply fog mixing to final color - New tronwall.frag: 55% body brightness with smoothstep top edge Renderer: - Cache u_camera_pos and u_fog_density uniforms across all programs - Add world_to_screen() for 3D-to-CSS projection - draw() takes fog_density parameter (1.0 for Tron, 0.0 otherwise) Camera (TronFollow mode): - Lower (10→6), closer (16→12), wider look-ahead (20→30) - FOV widened to 70 degrees for Tron games Tron scene: - Trail walls use TronWall shader (own: h=3 i=2.0, enemy: h=5 i=1.5) - Boundary walls use TronWall (h=8, dim color) - Grid lines: hair-thin (0.08), Unlit material, semi-transparent - Cycle bodies shrunk for sleeker look JS overlay (bridge → ui.js): - Floating player names with neon glow text-shadow - Bottom-center minimap showing walls and cycle dots - Speed/rubber/brake gauge bars for local player Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Files changed (15)
Test plan
Generated with Claude Code