Skip to content

Commit d1ad05d

Browse files
committed
Respect Texture.repeat / offset for surface maps
1 parent 5e4cd47 commit d1ad05d

7 files changed

+7
-7
lines changed

build/MathBox-bundle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43950,7 +43950,7 @@ MathBox.Materials.prototype = {
4395043950

4395143951
if (type == 'uniforms') {
4395243952
var uniforms = material.uniforms;
43953-
if (options.map !== undefined) {
43953+
if (options.map) {
4395443954
if (uniforms.texture) {
4395543955
uniforms.texture.value = options.map;
4395643956
}

build/MathBox-bundle.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/MathBox-core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ MathBox.Materials.prototype = {
13411341

13421342
if (type == 'uniforms') {
13431343
var uniforms = material.uniforms;
1344-
if (options.map !== undefined) {
1344+
if (options.map) {
13451345
if (uniforms.texture) {
13461346
uniforms.texture.value = options.map;
13471347
}

build/MathBox-core.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/MathBox.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4327,7 +4327,7 @@ MathBox.Materials.prototype = {
43274327

43284328
if (type == 'uniforms') {
43294329
var uniforms = material.uniforms;
4330-
if (options.map !== undefined) {
4330+
if (options.map) {
43314331
if (uniforms.texture) {
43324332
uniforms.texture.value = options.map;
43334333
}

build/MathBox.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Materials.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ MathBox.Materials.prototype = {
244244

245245
if (type == 'uniforms') {
246246
var uniforms = material.uniforms;
247-
if (options.map !== undefined) {
247+
if (options.map) {
248248
if (uniforms.texture) {
249249
uniforms.texture.value = options.map;
250250
}

0 commit comments

Comments
 (0)