fix(image-pipeline): align detail-adjust grain seed parity

This commit is contained in:
Matthias
2026-04-04 22:42:51 +02:00
parent 65e96cbdf1
commit 46b7aeb26e
4 changed files with 58 additions and 3 deletions

View File

@@ -274,6 +274,11 @@ function applyStepUniforms(
if (grainScaleLocation) {
gl.uniform1f(grainScaleLocation, Math.max(0.5, detail.grain.size));
}
const imageWidthLocation = gl.getUniformLocation(shaderProgram, "uImageWidth");
if (imageWidthLocation) {
gl.uniform1f(imageWidthLocation, request.width);
}
}
}