Skip to content

Commit 943d50a

Browse files
committed
fix use of near/far after rename
1 parent 1915905 commit 943d50a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/controls/drag.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ int main() {
2626
light->angle = math::PI / 9;
2727

2828
light->castShadow = true;
29-
light->shadow->camera->near = 10;
30-
light->shadow->camera->far = 100;
29+
light->shadow->camera->nearPlane = 10;
30+
light->shadow->camera->farPlane = 100;
3131
light->shadow->mapSize.x = 1024;
3232
light->shadow->mapSize.y = 1024;
3333

examples/misc/clipping.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ int main() {
2727
spotLight->penumbra = 0.2;
2828
spotLight->position.set(2, 3, 3);
2929
spotLight->castShadow = true;
30-
spotLight->shadow->camera->near = 3;
31-
spotLight->shadow->camera->far = 10;
30+
spotLight->shadow->camera->nearPlane = 3;
31+
spotLight->shadow->camera->farPlane = 10;
3232
spotLight->shadow->mapSize.x = 1024;
3333
spotLight->shadow->mapSize.y = 1024;
3434
scene->add(spotLight);
3535

3636
auto dirLight = DirectionalLight::create(0x55505a, 1.f);
3737
dirLight->position.set(0, 3, 0);
3838
dirLight->castShadow = true;
39-
dirLight->shadow->camera->near = 1;
40-
dirLight->shadow->camera->far = 10;
39+
dirLight->shadow->camera->nearPlane = 1;
40+
dirLight->shadow->camera->farPlane = 10;
4141

4242
dirLight->shadow->camera->as<OrthographicCamera>()->right = 1;
4343
dirLight->shadow->camera->as<OrthographicCamera>()->left = -1;

0 commit comments

Comments
 (0)