Skip to content

Commit

Permalink
Update src/3d/qgsambientocclusionrenderentity.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and wonder-sk committed Nov 22, 2024
1 parent 82d3c9a commit 5d3b70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/3d/qgsambientocclusionrenderentity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ QgsAmbientOcclusionRenderEntity::QgsAmbientOcclusionRenderEntity( Qt3DRender::QT
randomFloats( generator ) * 2.0 - 1.0
);
sample.normalize();
float scale = static_cast< float >( i ) /static_cast< float >( kernelSize );
float scale = static_cast< float >( i ) / static_cast< float >( kernelSize );
scale = 0.1 + 0.9 * scale * scale;
sample *= scale;
ssaoKernelValues.push_back( sample );
Expand Down

0 comments on commit 5d3b70c

Please sign in to comment.