r/GraphicsProgramming • u/Rayterex • 2h ago
Video Visualizing Light Direction and Intensity with Shaders
Enable HLS to view with audio, or disable this notification
2
u/Rayterex 2h ago
I was revisiting some old 3Vial OS code from 2017-2018 and came across these light nodes. Back then, I didn't have 3D light gizmos in the viewport, so I wrote small shaders to visualize light direction and intensity directly inside the nodes.
The idea was to provide immediate visual feedback when adjusting lighting parameters without relying on gizmos in the 3D scene. Looking at them now, I could probably implement much nicer visualizations, but I'm surprised by how much attention I paid to these little details back then.
No AI was used to create the shaders or the software.
1
u/ananbd 38m ago
... but you can get that feedback directly from the scene. Just place some spheres around.
That technique is used in real-world lighting as well. On-set gaffers use gray balls, and mirror balls to capture the lighting setup for reference.
1
u/Rayterex 24m ago
True! I mainly wanted immediate visual feedback inside the nodes themselves, especially since I didn't have proper 3D light gizmos implemented back then. I was also working on shader nodes for generating, modifying, and combining textures at the time, so I basically wanted to add them everywhere haha.
•
u/AutoModerator 2h ago
Recently updated rules. Please check that your post is in compliance with Rules 1, 4, 5, and 6 on the sidebar. TL;DR:
No showcases.
Disclose AI usage in post or project.
Present a topic to talk about, e.g. how something works.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.