File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments