Skip to content

Commit eed2625

Browse files
committed
Fix CMJ
1 parent 3a3daf1 commit eed2625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

App/CL/sampling.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ float2 cmj(int s, int n, int p)
172172

173173
float2 CmjSampler_Sample2D(Sampler* sampler)
174174
{
175-
int idx = permute(sampler->index, CMJ_DIM * CMJ_DIM, 0xa399d265 * sampler->scramble);
175+
int idx = permute(sampler->index, CMJ_DIM * CMJ_DIM, 0xa399d265 * sampler->dimension * sampler->scramble);
176176
return cmj(idx, CMJ_DIM, sampler->dimension * sampler->scramble);
177177
}
178178

0 commit comments

Comments
 (0)