R158 Bump Scale

With three js version 0.158.0 specifically pull request: ensure bump map scale is texture UV scale invariant. adjust examples. by bhouston · Pull Request #26899 · mrdoob/three.js · GitHub

“Normalize is done to ensure that the bump map looks the same regardless of the texture’s scale”
“The fix for this is to adjust bumpScale to higher values.”
My dilemma is that I have over 1000 materials configured with certain bumpScale values, I do not want to go and change all of these manually by eye rather increase the bumpScale by some factor in the application of the texture to the material for each material with a bump map.

I do not understand what the texture scale is and how I would essentially be able to revert this change by increasing my bump scales by some value?

Any help would be greatly appreciated!
Thank you! - Shane

For your particular use case, could you revert the changes by patching the bumpmap_pars_fragment shader chunk via onBeforeCompile()?

AFAIK, there is no way to automatically update the bump map scale values to the new logic. You would have to do this manually so you can visually check if the new value is okay.

1 Like

Thank you!