|
@@ -9716,14 +9716,14 @@ declare module "babylonjs/Culling/ray" {
|
|
/**
|
|
/**
|
|
* Checks if ray intersects a mesh
|
|
* Checks if ray intersects a mesh
|
|
* @param mesh the mesh to check
|
|
* @param mesh the mesh to check
|
|
- * @param fastCheck if only the bounding box should checked
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @returns picking info of the intersecton
|
|
* @returns picking info of the intersecton
|
|
*/
|
|
*/
|
|
intersectsMesh(mesh: DeepImmutable<AbstractMesh>, fastCheck?: boolean): PickingInfo;
|
|
intersectsMesh(mesh: DeepImmutable<AbstractMesh>, fastCheck?: boolean): PickingInfo;
|
|
/**
|
|
/**
|
|
* Checks if ray intersects a mesh
|
|
* Checks if ray intersects a mesh
|
|
* @param meshes the meshes to check
|
|
* @param meshes the meshes to check
|
|
- * @param fastCheck if only the bounding box should checked
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @param results array to store result in
|
|
* @param results array to store result in
|
|
* @returns Array of picking infos
|
|
* @returns Array of picking infos
|
|
*/
|
|
*/
|
|
@@ -10057,7 +10057,7 @@ declare module "babylonjs/Sprites/spriteSceneComponent" {
|
|
* @param x position on screen
|
|
* @param x position on screen
|
|
* @param y position on screen
|
|
* @param y position on screen
|
|
* @param predicate Predicate function used to determine eligible sprites. Can be set to null. In this case, a sprite must have isPickable set to true
|
|
* @param predicate Predicate function used to determine eligible sprites. Can be set to null. In this case, a sprite must have isPickable set to true
|
|
- * @param fastCheck Launch a fast check only using the bounding boxes. Can be set to null.
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @param camera camera to use for computing the picking ray. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @param camera camera to use for computing the picking ray. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @returns a PickingInfo
|
|
* @returns a PickingInfo
|
|
*/
|
|
*/
|
|
@@ -10065,7 +10065,7 @@ declare module "babylonjs/Sprites/spriteSceneComponent" {
|
|
/** Use the given ray to pick a sprite in the scene
|
|
/** Use the given ray to pick a sprite in the scene
|
|
* @param ray The ray (in world space) to use to pick meshes
|
|
* @param ray The ray (in world space) to use to pick meshes
|
|
* @param predicate Predicate function used to determine eligible sprites. Can be set to null. In this case, a sprite must have isPickable set to true
|
|
* @param predicate Predicate function used to determine eligible sprites. Can be set to null. In this case, a sprite must have isPickable set to true
|
|
- * @param fastCheck Launch a fast check only using the bounding boxes. Can be set to null.
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @param camera camera to use. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @param camera camera to use. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @returns a PickingInfo
|
|
* @returns a PickingInfo
|
|
*/
|
|
*/
|
|
@@ -10214,7 +10214,7 @@ declare module "babylonjs/Sprites/spriteManager" {
|
|
* @param ray The ray we are sending to test the collision
|
|
* @param ray The ray we are sending to test the collision
|
|
* @param camera The camera space we are sending rays in
|
|
* @param camera The camera space we are sending rays in
|
|
* @param predicate A predicate allowing excluding sprites from the list of object to test
|
|
* @param predicate A predicate allowing excluding sprites from the list of object to test
|
|
- * @param fastCheck Is the hit test done in a OOBB or AOBB fashion the faster, the less precise
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @returns picking info or null.
|
|
* @returns picking info or null.
|
|
*/
|
|
*/
|
|
intersects(ray: Ray, camera: Camera, predicate?: (sprite: Sprite) => boolean, fastCheck?: boolean): Nullable<PickingInfo>;
|
|
intersects(ray: Ray, camera: Camera, predicate?: (sprite: Sprite) => boolean, fastCheck?: boolean): Nullable<PickingInfo>;
|
|
@@ -22035,6 +22035,10 @@ declare module "babylonjs/Materials/material" {
|
|
*/
|
|
*/
|
|
disableDepthWrite: boolean;
|
|
disableDepthWrite: boolean;
|
|
/**
|
|
/**
|
|
|
|
+ * Specifies if color writing should be disabled
|
|
|
|
+ */
|
|
|
|
+ disableColorWrite: boolean;
|
|
|
|
+ /**
|
|
* Specifies if depth writing should be forced
|
|
* Specifies if depth writing should be forced
|
|
*/
|
|
*/
|
|
forceDepthWrite: boolean;
|
|
forceDepthWrite: boolean;
|
|
@@ -22112,6 +22116,10 @@ declare module "babylonjs/Materials/material" {
|
|
*/
|
|
*/
|
|
private _cachedDepthWriteState;
|
|
private _cachedDepthWriteState;
|
|
/**
|
|
/**
|
|
|
|
+ * Specifies if the color write state should be cached
|
|
|
|
+ */
|
|
|
|
+ private _cachedColorWriteState;
|
|
|
|
+ /**
|
|
* Specifies if the depth function state should be cached
|
|
* Specifies if the depth function state should be cached
|
|
*/
|
|
*/
|
|
private _cachedDepthFunctionState;
|
|
private _cachedDepthFunctionState;
|
|
@@ -22682,7 +22690,7 @@ declare module "babylonjs/Meshes/subMesh" {
|
|
* @param ray defines the ray to test
|
|
* @param ray defines the ray to test
|
|
* @param positions defines mesh's positions array
|
|
* @param positions defines mesh's positions array
|
|
* @param indices defines mesh's indices array
|
|
* @param indices defines mesh's indices array
|
|
- * @param fastCheck defines if only bounding info should be used
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @param trianglePredicate defines an optional predicate used to select faces when a mesh intersection is detected
|
|
* @param trianglePredicate defines an optional predicate used to select faces when a mesh intersection is detected
|
|
* @returns intersection info or null if no intersection
|
|
* @returns intersection info or null if no intersection
|
|
*/
|
|
*/
|
|
@@ -38409,7 +38417,7 @@ declare module "babylonjs/scene" {
|
|
* @param x position on screen
|
|
* @param x position on screen
|
|
* @param y position on screen
|
|
* @param y position on screen
|
|
* @param predicate Predicate function used to determine eligible meshes. Can be set to null. In this case, a mesh must be enabled, visible and with isPickable set to true
|
|
* @param predicate Predicate function used to determine eligible meshes. Can be set to null. In this case, a mesh must be enabled, visible and with isPickable set to true
|
|
- * @param fastCheck Launch a fast check only using the bounding boxes. Can be set to null.
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @param camera to use for computing the picking ray. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @param camera to use for computing the picking ray. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @param trianglePredicate defines an optional predicate used to select faces when a mesh intersection is detected
|
|
* @param trianglePredicate defines an optional predicate used to select faces when a mesh intersection is detected
|
|
* @returns a PickingInfo
|
|
* @returns a PickingInfo
|
|
@@ -38419,7 +38427,7 @@ declare module "babylonjs/scene" {
|
|
* @param x position on screen
|
|
* @param x position on screen
|
|
* @param y position on screen
|
|
* @param y position on screen
|
|
* @param predicate Predicate function used to determine eligible meshes. Can be set to null. In this case, a mesh must be enabled, visible and with isPickable set to true
|
|
* @param predicate Predicate function used to determine eligible meshes. Can be set to null. In this case, a mesh must be enabled, visible and with isPickable set to true
|
|
- * @param fastCheck Launch a fast check only using the bounding boxes. Can be set to null.
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @param camera to use for computing the picking ray. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @param camera to use for computing the picking ray. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @returns a PickingInfo (Please note that some info will not be set like distance, bv, bu and everything that cannot be capture by only using bounding infos)
|
|
* @returns a PickingInfo (Please note that some info will not be set like distance, bv, bu and everything that cannot be capture by only using bounding infos)
|
|
*/
|
|
*/
|
|
@@ -38427,7 +38435,7 @@ declare module "babylonjs/scene" {
|
|
/** Use the given ray to pick a mesh in the scene
|
|
/** Use the given ray to pick a mesh in the scene
|
|
* @param ray The ray to use to pick meshes
|
|
* @param ray The ray to use to pick meshes
|
|
* @param predicate Predicate function used to determine eligible meshes. Can be set to null. In this case, a mesh must have isPickable set to true
|
|
* @param predicate Predicate function used to determine eligible meshes. Can be set to null. In this case, a mesh must have isPickable set to true
|
|
- * @param fastCheck Launch a fast check only using the bounding boxes. Can be set to null
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @param trianglePredicate defines an optional predicate used to select faces when a mesh intersection is detected
|
|
* @param trianglePredicate defines an optional predicate used to select faces when a mesh intersection is detected
|
|
* @returns a PickingInfo
|
|
* @returns a PickingInfo
|
|
*/
|
|
*/
|
|
@@ -84084,14 +84092,14 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Checks if ray intersects a mesh
|
|
* Checks if ray intersects a mesh
|
|
* @param mesh the mesh to check
|
|
* @param mesh the mesh to check
|
|
- * @param fastCheck if only the bounding box should checked
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @returns picking info of the intersecton
|
|
* @returns picking info of the intersecton
|
|
*/
|
|
*/
|
|
intersectsMesh(mesh: DeepImmutable<AbstractMesh>, fastCheck?: boolean): PickingInfo;
|
|
intersectsMesh(mesh: DeepImmutable<AbstractMesh>, fastCheck?: boolean): PickingInfo;
|
|
/**
|
|
/**
|
|
* Checks if ray intersects a mesh
|
|
* Checks if ray intersects a mesh
|
|
* @param meshes the meshes to check
|
|
* @param meshes the meshes to check
|
|
- * @param fastCheck if only the bounding box should checked
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @param results array to store result in
|
|
* @param results array to store result in
|
|
* @returns Array of picking infos
|
|
* @returns Array of picking infos
|
|
*/
|
|
*/
|
|
@@ -84402,7 +84410,7 @@ declare module BABYLON {
|
|
* @param x position on screen
|
|
* @param x position on screen
|
|
* @param y position on screen
|
|
* @param y position on screen
|
|
* @param predicate Predicate function used to determine eligible sprites. Can be set to null. In this case, a sprite must have isPickable set to true
|
|
* @param predicate Predicate function used to determine eligible sprites. Can be set to null. In this case, a sprite must have isPickable set to true
|
|
- * @param fastCheck Launch a fast check only using the bounding boxes. Can be set to null.
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @param camera camera to use for computing the picking ray. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @param camera camera to use for computing the picking ray. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @returns a PickingInfo
|
|
* @returns a PickingInfo
|
|
*/
|
|
*/
|
|
@@ -84410,7 +84418,7 @@ declare module BABYLON {
|
|
/** Use the given ray to pick a sprite in the scene
|
|
/** Use the given ray to pick a sprite in the scene
|
|
* @param ray The ray (in world space) to use to pick meshes
|
|
* @param ray The ray (in world space) to use to pick meshes
|
|
* @param predicate Predicate function used to determine eligible sprites. Can be set to null. In this case, a sprite must have isPickable set to true
|
|
* @param predicate Predicate function used to determine eligible sprites. Can be set to null. In this case, a sprite must have isPickable set to true
|
|
- * @param fastCheck Launch a fast check only using the bounding boxes. Can be set to null.
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @param camera camera to use. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @param camera camera to use. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @returns a PickingInfo
|
|
* @returns a PickingInfo
|
|
*/
|
|
*/
|
|
@@ -84545,7 +84553,7 @@ declare module BABYLON {
|
|
* @param ray The ray we are sending to test the collision
|
|
* @param ray The ray we are sending to test the collision
|
|
* @param camera The camera space we are sending rays in
|
|
* @param camera The camera space we are sending rays in
|
|
* @param predicate A predicate allowing excluding sprites from the list of object to test
|
|
* @param predicate A predicate allowing excluding sprites from the list of object to test
|
|
- * @param fastCheck Is the hit test done in a OOBB or AOBB fashion the faster, the less precise
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @returns picking info or null.
|
|
* @returns picking info or null.
|
|
*/
|
|
*/
|
|
intersects(ray: Ray, camera: Camera, predicate?: (sprite: Sprite) => boolean, fastCheck?: boolean): Nullable<PickingInfo>;
|
|
intersects(ray: Ray, camera: Camera, predicate?: (sprite: Sprite) => boolean, fastCheck?: boolean): Nullable<PickingInfo>;
|
|
@@ -95897,6 +95905,10 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
disableDepthWrite: boolean;
|
|
disableDepthWrite: boolean;
|
|
/**
|
|
/**
|
|
|
|
+ * Specifies if color writing should be disabled
|
|
|
|
+ */
|
|
|
|
+ disableColorWrite: boolean;
|
|
|
|
+ /**
|
|
* Specifies if depth writing should be forced
|
|
* Specifies if depth writing should be forced
|
|
*/
|
|
*/
|
|
forceDepthWrite: boolean;
|
|
forceDepthWrite: boolean;
|
|
@@ -95974,6 +95986,10 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
private _cachedDepthWriteState;
|
|
private _cachedDepthWriteState;
|
|
/**
|
|
/**
|
|
|
|
+ * Specifies if the color write state should be cached
|
|
|
|
+ */
|
|
|
|
+ private _cachedColorWriteState;
|
|
|
|
+ /**
|
|
* Specifies if the depth function state should be cached
|
|
* Specifies if the depth function state should be cached
|
|
*/
|
|
*/
|
|
private _cachedDepthFunctionState;
|
|
private _cachedDepthFunctionState;
|
|
@@ -96523,7 +96539,7 @@ declare module BABYLON {
|
|
* @param ray defines the ray to test
|
|
* @param ray defines the ray to test
|
|
* @param positions defines mesh's positions array
|
|
* @param positions defines mesh's positions array
|
|
* @param indices defines mesh's indices array
|
|
* @param indices defines mesh's indices array
|
|
- * @param fastCheck defines if only bounding info should be used
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @param trianglePredicate defines an optional predicate used to select faces when a mesh intersection is detected
|
|
* @param trianglePredicate defines an optional predicate used to select faces when a mesh intersection is detected
|
|
* @returns intersection info or null if no intersection
|
|
* @returns intersection info or null if no intersection
|
|
*/
|
|
*/
|
|
@@ -111828,7 +111844,7 @@ declare module BABYLON {
|
|
* @param x position on screen
|
|
* @param x position on screen
|
|
* @param y position on screen
|
|
* @param y position on screen
|
|
* @param predicate Predicate function used to determine eligible meshes. Can be set to null. In this case, a mesh must be enabled, visible and with isPickable set to true
|
|
* @param predicate Predicate function used to determine eligible meshes. Can be set to null. In this case, a mesh must be enabled, visible and with isPickable set to true
|
|
- * @param fastCheck Launch a fast check only using the bounding boxes. Can be set to null.
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @param camera to use for computing the picking ray. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @param camera to use for computing the picking ray. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @param trianglePredicate defines an optional predicate used to select faces when a mesh intersection is detected
|
|
* @param trianglePredicate defines an optional predicate used to select faces when a mesh intersection is detected
|
|
* @returns a PickingInfo
|
|
* @returns a PickingInfo
|
|
@@ -111838,7 +111854,7 @@ declare module BABYLON {
|
|
* @param x position on screen
|
|
* @param x position on screen
|
|
* @param y position on screen
|
|
* @param y position on screen
|
|
* @param predicate Predicate function used to determine eligible meshes. Can be set to null. In this case, a mesh must be enabled, visible and with isPickable set to true
|
|
* @param predicate Predicate function used to determine eligible meshes. Can be set to null. In this case, a mesh must be enabled, visible and with isPickable set to true
|
|
- * @param fastCheck Launch a fast check only using the bounding boxes. Can be set to null.
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @param camera to use for computing the picking ray. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @param camera to use for computing the picking ray. Can be set to null. In this case, the scene.activeCamera will be used
|
|
* @returns a PickingInfo (Please note that some info will not be set like distance, bv, bu and everything that cannot be capture by only using bounding infos)
|
|
* @returns a PickingInfo (Please note that some info will not be set like distance, bv, bu and everything that cannot be capture by only using bounding infos)
|
|
*/
|
|
*/
|
|
@@ -111846,7 +111862,7 @@ declare module BABYLON {
|
|
/** Use the given ray to pick a mesh in the scene
|
|
/** Use the given ray to pick a mesh in the scene
|
|
* @param ray The ray to use to pick meshes
|
|
* @param ray The ray to use to pick meshes
|
|
* @param predicate Predicate function used to determine eligible meshes. Can be set to null. In this case, a mesh must have isPickable set to true
|
|
* @param predicate Predicate function used to determine eligible meshes. Can be set to null. In this case, a mesh must have isPickable set to true
|
|
- * @param fastCheck Launch a fast check only using the bounding boxes. Can be set to null
|
|
|
|
|
|
+ * @param fastCheck defines if the first intersection will be used (and not the closest)
|
|
* @param trianglePredicate defines an optional predicate used to select faces when a mesh intersection is detected
|
|
* @param trianglePredicate defines an optional predicate used to select faces when a mesh intersection is detected
|
|
* @returns a PickingInfo
|
|
* @returns a PickingInfo
|
|
*/
|
|
*/
|