OClCollMeshEngn: produce ambience into stimBuff frames directly
This commit is contained in:
@@ -25,7 +25,7 @@ __kernel void collate(
|
||||
__global uchar* assembly,
|
||||
__global float* collation,
|
||||
__global float* intensityBuffer,
|
||||
__global float* averageIntensityBuffer,
|
||||
__global float* ambienceBuffer,
|
||||
uint slotStride,
|
||||
uint nPointsPerSlot,
|
||||
uint nDgramsPerFrame)
|
||||
@@ -368,9 +368,9 @@ __kernel void collate(
|
||||
// Unsupported data types are silently ignored
|
||||
|
||||
// Write average intensity for this work item (once at the end)
|
||||
if (averageIntensityBuffer != NULL)
|
||||
if (ambienceBuffer != NULL)
|
||||
{
|
||||
averageIntensityBuffer[slotIndex] = (validPointCount > 0) ?
|
||||
ambienceBuffer[slotIndex] = (validPointCount > 0) ?
|
||||
(intensitySum / (float)validPointCount) : 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user