Skip to content
Snippets Groups Projects
Commit e1f69fa0 authored by Alexander Gauggel's avatar Alexander Gauggel
Browse files

[#81] Adjust cone tracing bias

parent 8c4e3d0f
No related branches found
No related tags found
1 merge request!70Resolve "Voxel cone tracing"
......@@ -124,7 +124,7 @@ vec3 voxelConeTrace(vec3 direction, vec3 startPosition, float coneAngleRadian, t
float maxMip = float(log2(voxelResolution));
float maxStableMip = 4; // must be the same as in Voxelization::voxelizeMeshes
maxMip = min(maxMip, maxStableMip);
float d = 0.75 * sqrt(3 * pow(voxelSize, 2));
float d = 2 * sqrt(3 * pow(voxelSize, 2));
vec3 color = vec3(0);
float a = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment