@needle-tools/engine 4.7.0-next.2756168 → 4.7.0-next.7da7e6c

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/{needle-engine.bundle-lLDHlwZU.umd.cjs → needle-engine.bundle-5RaHkjsI.umd.cjs} +29 -27
  3. package/dist/{needle-engine.bundle-S0N_qbSh.js → needle-engine.bundle-FwGYQmeZ.js} +368 -364
  4. package/dist/{needle-engine.bundle-C2wJAuPf.min.js → needle-engine.bundle-lPQ5zOtR.min.js} +30 -28
  5. package/dist/needle-engine.js +2 -2
  6. package/dist/needle-engine.min.js +1 -1
  7. package/dist/needle-engine.umd.cjs +1 -1
  8. package/lib/engine/engine_context.js +1 -1
  9. package/lib/engine/engine_context.js.map +1 -1
  10. package/lib/engine/webcomponents/needle-engine.attributes.d.ts +1 -1
  11. package/lib/engine-components/Camera.js +1 -1
  12. package/lib/engine-components/Camera.js.map +1 -1
  13. package/lib/engine-components/CameraUtils.js +5 -3
  14. package/lib/engine-components/CameraUtils.js.map +1 -1
  15. package/lib/engine-components/Skybox.js +4 -4
  16. package/lib/engine-components/Skybox.js.map +1 -1
  17. package/lib/engine-components/postprocessing/Effects/Antialiasing.js +8 -1
  18. package/lib/engine-components/postprocessing/Effects/Antialiasing.js.map +1 -1
  19. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.js +1 -1
  20. package/lib/engine-components/postprocessing/PostProcessingHandler.js.map +1 -1
  21. package/lib/engine-components/postprocessing/Volume.js +1 -1
  22. package/lib/engine-components/postprocessing/Volume.js.map +1 -1
  23. package/package.json +1 -1
  24. package/plugins/common/logger.js +214 -0
  25. package/plugins/types/userconfig.d.ts +3 -1
  26. package/plugins/vite/alias.js +7 -2
  27. package/plugins/vite/imports-logger.js +1 -1
  28. package/plugins/vite/index.js +4 -0
  29. package/plugins/vite/logger.client.js +124 -0
  30. package/plugins/vite/logger.js +85 -0
  31. package/plugins/vite/materialx.js +30 -0
  32. package/plugins/vite/transform.js +1 -0
  33. package/src/engine/engine_context.ts +1 -1
  34. package/src/engine/webcomponents/needle-engine.attributes.ts +1 -1
  35. package/src/engine-components/Camera.ts +1 -1
  36. package/src/engine-components/CameraUtils.ts +5 -3
  37. package/src/engine-components/Skybox.ts +5 -5
  38. package/src/engine-components/postprocessing/Effects/Antialiasing.ts +8 -1
  39. package/src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.ts +1 -1
  40. package/src/engine-components/postprocessing/PostProcessingHandler.ts +1 -2
  41. package/src/engine-components/postprocessing/Volume.ts +1 -1
@@ -183,7 +183,7 @@ export class PostProcessingHandler {
183
183
  });
184
184
  }
185
185
 
186
- function validateEffect(source:string, effect: Effect | Pass): boolean {
186
+ function validateEffect(source: string, effect: Effect | Pass): boolean {
187
187
  if (!effect) {
188
188
  return false;
189
189
  }
@@ -461,7 +461,6 @@ export class PostProcessingHandler {
461
461
  }
462
462
  foundEnabled = true;
463
463
  }
464
-
465
464
  pass.renderToScreen = renderToScreen;
466
465
 
467
466
  if ((pass as any)?.configuration !== undefined) {
@@ -194,7 +194,7 @@ export class Volume extends Behaviour implements IEditorModificationReceiver, IP
194
194
  if (this._postprocessing.multisampling !== 0) {
195
195
  this._postprocessing.multisampling = 0;
196
196
  if (debug || isDevEnvironment()) {
197
- console.warn(`[PostProcessing] Disabling multisampling you're using SMAA and have set the 'multisampling: auto' on your PostprocessingManager/Volume component. If you need anti-aliasing, consider adding an Antialiasing component or SMAA effect to the PostprocessingManager.`);
197
+ console.log(`[PostProcessing] multisampling is disabled because it's set to 'auto' on your PostprocessingManager/Volume component that also has an SMAA effect.\n\nIf you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`);
198
198
  }
199
199
  }
200
200
  }