We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf75147 + e7fbd50 commit 3337c7fCopy full SHA for 3337c7f
src/materials/pathtracing/glsl/camera_util_functions.glsl.js
@@ -60,7 +60,7 @@ export const camera_util_functions = /* glsl */`
60
vec3 shapeUVW= rand3( 1 );
61
int blades = physicalCamera.apertureBlades;
62
float anamorphicRatio = physicalCamera.anamorphicRatio;
63
- vec2 apertureSample = blades == 0 ? sampleCircle( shapeUVW.xy ) : sampleRegularPolygon( blades, shapeUVW );
+ vec2 apertureSample = sampleAperture( blades, shapeUVW );
64
apertureSample *= physicalCamera.bokehSize * 0.5 * 1e-3;
65
66
// rotate the aperture shape
0 commit comments