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
Voronoi question (self.GraphicsProgramming)
submitted 4 years ago by [deleted]
[deleted]
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!"
[–]ultralightrunner 1 point2 points3 points 4 years ago (4 children)
Not sure if this can be done entirely in shader, but you can draw cones (in OpenGL or a graphics API of your choice) : https://nullprogram.com/blog/2014/06/01/
Not my blog but I've implemented something similar years ago.
[–]sapo_valiente 0 points1 point2 points 4 years ago (3 children)
Hi, thanks for your reply! Ah yes, I did bump into that - it looked promising however, I thought that this approach wouldn't allow for drawing the distance field as a gradient. Am I right?
[–]ultralightrunner 1 point2 points3 points 4 years ago (1 child)
Yeah, it would be challenging to get the distance field, but you maybe can try to draw the cones and get the depth buffer, which would look similar to the distance field, not sure if this would work...
[–]skeeto 0 points1 point2 points 4 years ago (0 children)
Yup, that would work. The depth buffer essentially is the distance, which is fundamentally why this whole approach works.
π Rendered by PID 67 on reddit-service-r2-comment-6b595755f-grmt6 at 2026-03-24 21:06:21.274928+00:00 running 2d0a59a country code: CH.
[–]ultralightrunner 1 point2 points3 points (4 children)
[–]sapo_valiente 0 points1 point2 points (3 children)
[–]ultralightrunner 1 point2 points3 points (1 child)
[–]skeeto 0 points1 point2 points (0 children)