circuit-json-to-gltf 0.0.47 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14732,13 +14732,13 @@ async function renderBoardTextures(circuitJson, resolution = 1024) {
|
|
|
14732
14732
|
renderBoardLayer(circuitJson, {
|
|
14733
14733
|
layer: "top",
|
|
14734
14734
|
resolution,
|
|
14735
|
-
backgroundColor: "#
|
|
14735
|
+
backgroundColor: "#0F3812"
|
|
14736
14736
|
// Green PCB background
|
|
14737
14737
|
}),
|
|
14738
14738
|
renderBoardLayer(circuitJson, {
|
|
14739
14739
|
layer: "bottom",
|
|
14740
14740
|
resolution,
|
|
14741
|
-
backgroundColor: "#
|
|
14741
|
+
backgroundColor: "#0F3812"
|
|
14742
14742
|
// Darker green for bottom layer
|
|
14743
14743
|
})
|
|
14744
14744
|
]);
|
|
@@ -16092,7 +16092,9 @@ var GLTFBuilder = class {
|
|
|
16092
16092
|
const bottomMaterialIndex = this.addMaterial({
|
|
16093
16093
|
name: `BottomMaterial_${this.materials.length}`,
|
|
16094
16094
|
pbrMetallicRoughness: {
|
|
16095
|
-
baseColorFactor: [
|
|
16095
|
+
// baseColorFactor: [ 0.04,
|
|
16096
|
+
// 0.16,
|
|
16097
|
+
// 0.08, 1.0],
|
|
16096
16098
|
metallicFactor: 0,
|
|
16097
16099
|
roughnessFactor: 0.8
|
|
16098
16100
|
},
|
|
@@ -16117,7 +16119,7 @@ var GLTFBuilder = class {
|
|
|
16117
16119
|
const sideMaterialIndex = this.addMaterial({
|
|
16118
16120
|
name: `GreenSideMaterial_${this.materials.length}`,
|
|
16119
16121
|
pbrMetallicRoughness: {
|
|
16120
|
-
baseColorFactor: [0, 0.
|
|
16122
|
+
baseColorFactor: [0.04, 0.16, 0.08, 1],
|
|
16121
16123
|
metallicFactor: 0,
|
|
16122
16124
|
roughnessFactor: 0.8
|
|
16123
16125
|
},
|
|
@@ -16224,7 +16226,7 @@ var GLTFBuilder = class {
|
|
|
16224
16226
|
const topMaterialIndex = this.addMaterial({
|
|
16225
16227
|
name: `TopMaterial_${this.materials.length}`,
|
|
16226
16228
|
pbrMetallicRoughness: {
|
|
16227
|
-
baseColorFactor: [
|
|
16229
|
+
baseColorFactor: [0.04, 0.16, 0.08, 1],
|
|
16228
16230
|
metallicFactor: 0,
|
|
16229
16231
|
roughnessFactor: 0.8
|
|
16230
16232
|
},
|
|
@@ -16247,7 +16249,7 @@ var GLTFBuilder = class {
|
|
|
16247
16249
|
const bottomMaterialIndex = this.addMaterial({
|
|
16248
16250
|
name: `BottomMaterial_${this.materials.length}`,
|
|
16249
16251
|
pbrMetallicRoughness: {
|
|
16250
|
-
baseColorFactor: [
|
|
16252
|
+
baseColorFactor: [0.04, 0.16, 0.08, 1],
|
|
16251
16253
|
metallicFactor: 0,
|
|
16252
16254
|
roughnessFactor: 0.8
|
|
16253
16255
|
},
|
|
@@ -16269,7 +16271,7 @@ var GLTFBuilder = class {
|
|
|
16269
16271
|
const greenMaterialIndex = this.addMaterial({
|
|
16270
16272
|
name: `GreenSideMaterial_${this.materials.length}`,
|
|
16271
16273
|
pbrMetallicRoughness: {
|
|
16272
|
-
baseColorFactor: [0, 0.
|
|
16274
|
+
baseColorFactor: [0.04, 0.16, 0.08, 1],
|
|
16273
16275
|
// Green color for PCB sides
|
|
16274
16276
|
metallicFactor: 0,
|
|
16275
16277
|
roughnessFactor: 0.8
|