Vogel Disk Sampling

This Calculator allows you to calculate samples on disk using the vogel method.
This method allows for evenly spaced samples on a circle. Checking Center Samples will make sure that the center of mass of the array is at [0,0]

This can be very useful for creating a realistic looking Depth of Field Effect for Real-Time applications. This is the reason I originally created this tool.

To use it, enter a sample count and it will create an array with samples you can copy-paste directly into your GLSL shader.






Chart

GLSL Code

The code will show here