Skip to content
Snippets Groups Projects
Commit ec25a0c4 authored by Elohiem's avatar Elohiem
Browse files

Move shadowmapping camera

parent 0a0fd3aa
No related branches found
No related tags found
1 merge request!10839Fix webgl shadowmapping issue
...@@ -249,6 +249,13 @@ App.Art.createWebglUI = function(container, slave, artSize, scene, p) { ...@@ -249,6 +249,13 @@ App.Art.createWebglUI = function(container, slave, artSize, scene, p) {
scene.settings.rwidth = cvs.width * V.setSuperSampling; scene.settings.rwidth = cvs.width * V.setSuperSampling;
scene.settings.rheight = cvs.height * V.setSuperSampling; scene.settings.rheight = cvs.height * V.setSuperSampling;
scene.shadows.x = -600;
scene.shadows.y = 1000;
scene.shadows.z = -1000;
scene.shadows.fov = 40;
scene.shadows.fnear = 5;
scene.shadows.ffar = 10000;
// render state // render state
if (view.faceView) { if (view.faceView) {
btnFaceView.click(); btnFaceView.click();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment