diff --git a/examples/webgl_materials_channels.html b/examples/webgl_materials_channels.html index 316266a0b4bdcd..2bf7b581731714 100644 --- a/examples/webgl_materials_channels.html +++ b/examples/webgl_materials_channels.html @@ -63,6 +63,12 @@ side: 'double' }; + var sides = { + 'front': THREE.FrontSide, + 'back': THREE.BackSide, + 'double': THREE.DoubleSide + }; + var cameraOrtho, cameraPerspective; var controlsOrtho, controlsPerspective; @@ -277,7 +283,7 @@ } - if ( params.side !== material.side ) { + if ( sides[ params.side ] !== material.side ) { switch ( params.side ) {