@babylonjs/core 5.9.0 → 5.9.1
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/Engines/IPipelineContext.d.ts +7 -1
- package/Engines/IPipelineContext.js.map +1 -1
- package/Engines/WebGL/webGLPipelineContext.d.ts +7 -1
- package/Engines/WebGL/webGLPipelineContext.js +12 -0
- package/Engines/WebGL/webGLPipelineContext.js.map +1 -1
- package/Engines/WebGPU/webgpuPipelineContext.d.ts +7 -1
- package/Engines/WebGPU/webgpuPipelineContext.js +8 -0
- package/Engines/WebGPU/webgpuPipelineContext.js.map +1 -1
- package/Engines/engine.js +1 -0
- package/Engines/engine.js.map +1 -1
- package/Engines/nativeEngine.js +12 -0
- package/Engines/nativeEngine.js.map +1 -1
- package/Engines/thinEngine.js +2 -2
- package/Engines/thinEngine.js.map +1 -1
- package/Inputs/scene.inputManager.js +4 -8
- package/Inputs/scene.inputManager.js.map +1 -1
- package/Materials/PBR/pbrMaterial.js +4 -0
- package/Materials/PBR/pbrMaterial.js.map +1 -1
- package/Materials/PBR/pbrMetallicRoughnessMaterial.js +4 -0
- package/Materials/PBR/pbrMetallicRoughnessMaterial.js.map +1 -1
- package/Materials/PBR/pbrSpecularGlossinessMaterial.js +4 -0
- package/Materials/PBR/pbrSpecularGlossinessMaterial.js.map +1 -1
- package/Materials/effect.d.ts +8 -1
- package/Materials/effect.js +10 -0
- package/Materials/effect.js.map +1 -1
- package/Maths/math.like.d.ts +6 -0
- package/Maths/math.like.js.map +1 -1
- package/Meshes/geometry.js +2 -2
- package/Meshes/geometry.js.map +1 -1
- package/Misc/computePressure.js +3 -1
- package/Misc/computePressure.js.map +1 -1
- package/Rendering/utilityLayerRenderer.js +0 -4
- package/Rendering/utilityLayerRenderer.js.map +1 -1
- package/Shaders/extractHighlights.fragment.js +1 -1
- package/Shaders/extractHighlights.fragment.js.map +1 -1
- package/package.json +1 -1
package/Engines/nativeEngine.js
CHANGED
|
@@ -511,6 +511,18 @@ var NativePipelineContext = /** @class */ (function () {
|
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
};
|
|
514
|
+
/**
|
|
515
|
+
* Sets a Quaternion on a uniform variable.
|
|
516
|
+
* @param uniformName Name of the variable.
|
|
517
|
+
* @param quaternion Value to be set.
|
|
518
|
+
*/
|
|
519
|
+
NativePipelineContext.prototype.setQuaternion = function (uniformName, quaternion) {
|
|
520
|
+
if (this._cacheFloat4(uniformName, quaternion.x, quaternion.y, quaternion.z, quaternion.w)) {
|
|
521
|
+
if (!this.engine.setFloat4(this._uniforms[uniformName], quaternion.x, quaternion.y, quaternion.z, quaternion.w)) {
|
|
522
|
+
this._valueCache[uniformName] = null;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
};
|
|
514
526
|
/**
|
|
515
527
|
* Sets a float4 on a uniform variable.
|
|
516
528
|
* @param uniformName Name of the variable.
|