Skip to content

Commit 1579e9d

Browse files
default shadow min for point light is 0.1, which fixes some strange behaviour
1 parent 584a5a1 commit 1579e9d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/dev/babylonjs/lib/api/bitbybit/babylon/scene.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ export class BabylonScene {
135135
{ diameter: inputs.radius * 2 },
136136
this.context.scene
137137
);
138+
sphere.metadata = { shadows: false };
138139
const lightMaterial = new BABYLON.StandardMaterial(`LightMaterial${Math.random()}`, this.context.scene);
139140
lightMaterial.diffuseColor = light.diffuse;
140141
lightMaterial.specularColor = light.diffuse;

packages/dev/babylonjs/lib/api/inputs/scene-inputs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ export namespace BabylonScene {
149149
shadowMaxZ = 1000;
150150
/**
151151
* Shadow min Z
152-
* @default 0
152+
* @default 0.1
153153
* @minimum 0
154154
* @maximum Infinity
155155
* @step 50
156156
*/
157-
shadowMinZ = 0;
157+
shadowMinZ = 0.1;
158158
}
159159
export class ActiveCameraDto {
160160
constructor(camera?: BABYLON.Camera) {

0 commit comments

Comments
 (0)