Skip to content

Commit 8c747f0

Browse files
mvaligurskyMartin Valigursky
andauthored
[Fix] Falling shapes example - larger shadow distance to cover the area (playcanvas#3347)
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
1 parent ac8d987 commit 8c747f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/src/examples/physics/falling-shapes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class FallingShapesExample extends Example {
8181
color: new pc.Color(1, 1, 1),
8282
castShadows: true,
8383
shadowBias: 0.2,
84-
shadowDistance: 16,
84+
shadowDistance: 25,
8585
normalOffsetBias: 0.05,
8686
shadowResolution: 2048
8787
});
@@ -111,7 +111,7 @@ class FallingShapesExample extends Example {
111111
// helper function which creates a template for a collider
112112
const createTemplate = function (type: any, collisionOptions: any, template?: any) {
113113

114-
// add a model component (visible mesh)
114+
// add a render component (visible mesh)
115115
if (!template) {
116116
template = new pc.Entity();
117117
template.addComponent("render", {

0 commit comments

Comments
 (0)