that looks realy nice!
what are cal./render times for it?
what are cal./render times for it?
for (int i=0;i<count;i++) { r = (pointCloud[points[i]]-pos).lengthSqr(); if (r > blobSize2) continue; w = function(blobSize2, r); totalP += pointCloud[points[i]] * w; totalW += w; } res = 1.0 - (pos - totalP / totalW).length() / blobSize;
Ireal r; Ireal w; for (int i=0;i<count;i++) { r = (pointCloud[points[i]]-location).lengthSqr(); if (r > size2) continue; w = function(size2, r); totalP += pointCloud[points[i]] * w; totalW += w; } ... ... ... float radius = blobSize; if (field.totalW < blobSize) radius *= smoothstep(field.totalW / trim, cutoff, 1.0); // TODO: Optimize 1.0 part field.res = radius - (pos - field.totalP / field.totalW).length();
Comment