|
@@ -217,6 +217,7 @@
|
|
|
} )();
|
|
|
|
|
|
const envMapKeys = getObjectsKeys( envMaps );
|
|
|
+ const envMapKeysPBR = envMapKeys.slice( 0, 2 );
|
|
|
const diffuseMapKeys = getObjectsKeys( diffuseMaps );
|
|
|
const roughnessMapKeys = getObjectsKeys( roughnessMaps );
|
|
|
const matcapKeys = getObjectsKeys( matcaps );
|
|
@@ -525,7 +526,7 @@
|
|
|
const data = {
|
|
|
color: material.color.getHex(),
|
|
|
emissive: material.emissive.getHex(),
|
|
|
- envMaps: envMapKeys[ 0 ],
|
|
|
+ envMaps: envMapKeysPBR[ 0 ],
|
|
|
map: diffuseMapKeys[ 0 ],
|
|
|
roughnessMap: roughnessMapKeys[ 0 ],
|
|
|
alphaMap: alphaMapKeys[ 0 ]
|
|
@@ -542,7 +543,7 @@
|
|
|
folder.add( material, 'wireframe' );
|
|
|
folder.add( material, 'vertexColors' ).onChange( needsUpdate( material, geometry ) );
|
|
|
folder.add( material, 'fog' );
|
|
|
- folder.add( data, 'envMaps', envMapKeys ).onChange( updateTexture( material, 'envMap', envMaps ) );
|
|
|
+ folder.add( data, 'envMaps', envMapKeysPBR ).onChange( updateTexture( material, 'envMap', envMaps ) );
|
|
|
folder.add( data, 'map', diffuseMapKeys ).onChange( updateTexture( material, 'map', diffuseMaps ) );
|
|
|
folder.add( data, 'roughnessMap', roughnessMapKeys ).onChange( updateTexture( material, 'roughnessMap', roughnessMaps ) );
|
|
|
folder.add( data, 'alphaMap', alphaMapKeys ).onChange( updateTexture( material, 'alphaMap', alphaMaps ) );
|
|
@@ -576,7 +577,7 @@
|
|
|
folder.add( material, 'wireframe' );
|
|
|
folder.add( material, 'vertexColors' ).onChange( needsUpdate( material, geometry ) );
|
|
|
folder.add( material, 'fog' );
|
|
|
- folder.add( data, 'envMaps', envMapKeys ).onChange( updateTexture( material, 'envMap', envMaps ) );
|
|
|
+ folder.add( data, 'envMaps', envMapKeysPBR ).onChange( updateTexture( material, 'envMap', envMaps ) );
|
|
|
folder.add( data, 'map', diffuseMapKeys ).onChange( updateTexture( material, 'map', diffuseMaps ) );
|
|
|
folder.add( data, 'roughnessMap', roughnessMapKeys ).onChange( updateTexture( material, 'roughnessMap', roughnessMaps ) );
|
|
|
folder.add( data, 'alphaMap', alphaMapKeys ).onChange( updateTexture( material, 'alphaMap', alphaMaps ) );
|