Skip to content

Commit

Permalink
Revert "Package sample files using http and data references."
Browse files Browse the repository at this point in the history
This reverts commit 63a4ac1.
  • Loading branch information
kwokcb committed Sep 11, 2024
1 parent 63a4ac1 commit 49e88e6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 65 deletions.
27 changes: 0 additions & 27 deletions javascript/MaterialXView/resources/Materials/data_image.mtlx

This file was deleted.

28 changes: 0 additions & 28 deletions javascript/MaterialXView/resources/Materials/web_image.mtlx

This file was deleted.

10 changes: 0 additions & 10 deletions javascript/MaterialXView/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,9 @@ dirent = fs.readdirSync(openPbrMaterials).filter(
let openMaterials = dirent
.map((fileName) => ({ name: fileName, value: `${openPbrMaterialsBaseURL}/${fileName}` }));

const localMaterials = "./resources/Materials/";
const localMaterialsBaseURL = "Materials/Examples/Local";
dirent = fs.readdirSync(localMaterials).filter(
function (file) { if (file.lastIndexOf(".mtlx") > -1) return file; }
)
let locMaterials = dirent
.map((fileName) => ({ name: fileName, value: `${localMaterialsBaseURL}/${fileName}` }));

materials = materials.concat(usdMaterials);
materials = materials.concat(gltfMaterials);
materials = materials.concat(openMaterials);
materials = materials.concat(locMaterials);

const geometryFiles = "../../resources/Geometry";
const geometryFilesURL = "Geometry";
Expand Down Expand Up @@ -90,7 +81,6 @@ module.exports = {
{ from: usdSurfaceMaterials, to: usdSurfaceMaterialsBaseURL },
{ from: gltfPbrMaterials, to: gltfPbrMaterialsBaseURL },
{ from: openPbrMaterials, to: openPbrMaterialsBaseURL },
{ from: localMaterials, to: localMaterialsBaseURL },
{ from: "../build/bin/JsMaterialXCore.wasm" },
{ from: "../build/bin/JsMaterialXCore.js" },
{ from: "../build/bin/JsMaterialXGenShader.wasm" },
Expand Down

0 comments on commit 49e88e6

Please sign in to comment.