Coding 3D graphics with light reflections using GLM-5
Press play on the video. It'll jump straight to the section that answers the
title above — no need to watch the full video.
GLM-5
HTML
Three.js
Coding
3D
A guide to writing HTML and WebGL code using simple prompts to generate 3D scenes featuring realistic reflection physics.
Advantages of Regular Chat Mode
Use 'regular chat' mode instead of 'agents' if your task does not require overly complex steps or a very long reasoning process, as it is much faster.
Tip for Realistic Reflections
By default, the AI might not enable the 'mutual reflection' feature (objects reflecting other objects). You need to specify this in your prompt so the AI writes the reflection logic between the two objects.
Dynamic Color Testing
When you change an object's color or material (e.g., to 'Gold'), observe how the reflection color on adjacent objects updates automatically to ensure the light physics are accurate.
More from AI-Powered Coding & App Development
View All
Analyzing scientific research data with GLM-5
GLM-5
Build a full interactive course app with GLM-5 Agent
GLM-5
Z AI
Build an infinite procedural terrain map with GLM-5
GLM-5
Coding a Mario-style platformer game with GLM-5
GLM-5
Convert 2D images to 3D scenes with GPT 5.2 and Three.js
GPT 5.2
Three.js
Generate interactive 3D simulations with Gemini 3 Pro and Three.js
Gemini 3 Pro
Three.js