Skip to content
Snippets Groups Projects
Commit 65310e52 authored by Alexander Rose's avatar Alexander Rose
Browse files

guard against issue with bumpiness in impostors

parent 7bdd0b47
Branches
No related tags found
No related merge requests found
...@@ -6,6 +6,8 @@ Note that since we don't clearly distinguish between a public and private interf ...@@ -6,6 +6,8 @@ Note that since we don't clearly distinguish between a public and private interf
## [Unreleased] ## [Unreleased]
- Better guard against issue (black fringes) with bumpiness in impostors
## [v3.26.0] - 2022-12-04 ## [v3.26.0] - 2022-12-04
- Support for ``powerPreference`` webgl attribute. Add ``PluginConfig.General.PowerPreference`` and ``power-preference`` Viewer GET param. - Support for ``powerPreference`` webgl attribute. Add ``PluginConfig.General.PowerPreference`` and ``power-preference`` Viewer GET param.
......
...@@ -12,7 +12,7 @@ export const apply_light_color = ` ...@@ -12,7 +12,7 @@ export const apply_light_color = `
gl_FragColor = material; gl_FragColor = material;
#else #else
#ifdef bumpEnabled #ifdef bumpEnabled
if (uBumpFrequency > 0.0 && uBumpAmplitude > 0.0) { if (uBumpFrequency > 0.0 && uBumpAmplitude > 0.0 && bumpiness > 0.0) {
normal = perturbNormal(-vViewPosition, normal, fbm(vModelPosition * uBumpFrequency), (uBumpAmplitude * bumpiness) / uBumpFrequency); normal = perturbNormal(-vViewPosition, normal, fbm(vModelPosition * uBumpFrequency), (uBumpAmplitude * bumpiness) / uBumpFrequency);
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment