Browse Source

Fix a big in the GI texture clamping

Panagiotis Christopoulos Charitos 5 years ago
parent
commit
7a1ed324fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/anki/renderer/ClusterBin.cpp

+ 1 - 1
src/anki/renderer/ClusterBin.cpp

@@ -803,7 +803,7 @@ void ClusterBin::writeTypedObjectsToGpuBuffers(BinCtx& ctx) const
 			out.m_aabbMin = in.m_aabbMin;
 			out.m_aabbMax = in.m_aabbMax;
 			out.m_textureIndex = U32(&in - &rqueue.m_giProbes.getFront());
-			out.m_halfTexelSizeU = 1.0f / F32(in.m_cellCounts.x()) / 2.0f;
+			out.m_halfTexelSizeU = 1.0f / F32(in.m_cellCounts.x() * 6.0f) / 2.0f;
 			out.m_fadeDistance = in.m_fadeDistance;
 		}
 	}