roavatar-renderer 1.7.3 → 1.7.4

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/README.md CHANGED
@@ -42,6 +42,8 @@ Basic example on how to load an avatar using OutfitRenderer (to make it simpler)
42
42
  RBXRenderer.setBackgroundColor( 0xbbbbbb )
43
43
  RBXRenderer.setRendererSize(1000,500)
44
44
  RBXRenderer.setBackgroundTransparent(false)
45
+ //scene customization
46
+ RBXRenderer.firstScene.wellLitDirectionalLightIntensity *= 2.5 //recommended
45
47
  //add renderer to document
46
48
  document.body.appendChild(RBXRenderer.getRendererElement())
47
49
 
package/dist/index.js CHANGED
@@ -32226,7 +32226,7 @@ const FLAGS = {
32226
32226
  LAYERED_CLOTHING_COOLDOWN: 0.25,
32227
32227
  GET_WORKER_FUNC: DefaultGetWorkerFunc,
32228
32228
  RBF_PATCH_COUNT: 300,
32229
- //amount of "patches" that are used for layered clothing, multiple verts share the same patch
32229
+ //amount of "deformation patches" that are used for layered clothing, multiple verts share the same deformation patch, layered clothing usually has (3000 vertices)
32230
32230
  RBF_PATCH_DETAIL_SAMPLES: 32,
32231
32231
  //amount of nearby vertices each patch samples from
32232
32232
  RBF_PATCH_SHAPE_SAMPLES: 32,
@@ -47490,7 +47490,11 @@ class MaterialDesc {
47490
47490
  }
47491
47491
  fromMeshPart(child) {
47492
47492
  let affectedByHumanoid = isAffectedByHumanoid(child);
47493
- const meshPartTexture = child.Prop("TextureID");
47493
+ let meshPartTexture = child.PropOrDefault("TextureID", void 0);
47494
+ if (!meshPartTexture) {
47495
+ const textureContent = child.PropOrDefault("TextureContent", void 0);
47496
+ meshPartTexture = textureContent?.uri || "";
47497
+ }
47494
47498
  const surfaceAppearance = child.FindLastChildOfClass("SurfaceAppearance");
47495
47499
  let surfaceAppearanceAlphaMode = AlphaMode.Overlay;
47496
47500
  if (surfaceAppearance) {
@@ -48122,7 +48126,6 @@ class ObjectDesc extends RenderDesc {
48122
48126
  threeMesh.material = threeMaterial;
48123
48127
  threeMesh.receiveShadow = true;
48124
48128
  threeMaterial.needsUpdate = true;
48125
- threeMesh.visible = threeMaterial.visible;
48126
48129
  this.results = [threeMesh];
48127
48130
  this.originalScale = threeMesh.scale.clone();
48128
48131
  if (!this.meshDesc.scaleIsRelative) {
@@ -61481,7 +61484,8 @@ class RBXRenderer {
61481
61484
  mipmapBlur: true,
61482
61485
  luminanceThreshold: 0.95,
61483
61486
  luminanceSmoothing: 0.2,
61484
- intensity: 0.22
61487
+ intensity: 0.5,
61488
+ radius: 0.5
61485
61489
  })));
61486
61490
  const [width, height] = RBXRenderer.resolution;
61487
61491
  if (FLAGS.POST_PROCESSING_IS_DOUBLE_SIZE) {
@@ -62515,6 +62519,8 @@ class BackgroundRenderer {
62515
62519
  this.ambientLight.color = new Color().setRGB(...color2.toArray(), SRGBColorSpace);
62516
62520
  this.ambientLight.intensity = 1 * (1 - targetTransparency);
62517
62521
  this.renderScene.scene.add(this.ambientLight);
62522
+ } else {
62523
+ this.renderScene.scene.remove(this.ambientLight);
62518
62524
  }
62519
62525
  }
62520
62526
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roavatar-renderer",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "A renderer for Roblox avatars, used by the RoAvatar extension.",
5
5
  "author": "steinan",
6
6
  "type": "module",