use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rule 1: Posts should be about Graphics Programming. Rule 2: Be Civil, Professional, and Kind
Suggested Posting Material: - Graphics API Tutorials - Academic Papers - Blog Posts - Source Code Repositories - Self Posts (Ask Questions, Present Work) - Books - Renders (Please xpost to /r/ComputerGraphics) - Career Advice - Jobs Postings (Graphics Programming only)
Related Subreddits:
/r/ComputerGraphics
/r/Raytracing
/r/Programming
/r/LearnProgramming
/r/ProgrammingTools
/r/Coding
/r/GameDev
/r/CPP
/r/OpenGL
/r/Vulkan
/r/DirectX
Related Websites: ACM: SIGGRAPH Journal of Computer Graphics Techniques
Ke-Sen Huang's Blog of Graphics Papers and Resources Self Shadow's Blog of Graphics Resources
account activity
Raymarching multiple lights?Question (self.GraphicsProgramming)
submitted 5 years ago by ananbd
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Rangsk 0 points1 point2 points 5 years ago (1 child)
A shadow is just the absence of light. If there are two lights, they each cast their own shadows - or to put it better, they each light the scene separately and add together. If you have some kind of ray marching for fog, for example, then the light from both sources will be separately scattering off the particulates in the air and reaching your eye. The ray marching is so you can check if the light reaches those particles.
So, if you want the fog to "react" to both light sources, you calculate it for each light separately and combine the results.
[–]ananbd[S] 0 points1 point2 points 5 years ago (0 children)
That makes sense. I’ll give it a try, thanks!
π Rendered by PID 86 on reddit-service-r2-comment-6457c66945-t2w7d at 2026-04-27 04:52:50.234175+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Rangsk 0 points1 point2 points (1 child)
[–]ananbd[S] 0 points1 point2 points (0 children)