kopia lustrzana https://github.com/robhawkes/vizicities
Updated camera position and shadow camera size
rodzic
a6ff8bce38
commit
071f03ccfd
|
|
@ -3363,8 +3363,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
|
||||
exports['default'] = function (container) {
|
||||
var camera = new _three2['default'].PerspectiveCamera(45, 1, 1, 200000);
|
||||
camera.position.y = 400;
|
||||
camera.position.z = 400;
|
||||
camera.position.y = 4000;
|
||||
camera.position.z = 4000;
|
||||
|
||||
var updateSize = function updateSize() {
|
||||
camera.aspect = container.clientWidth / container.clientHeight;
|
||||
|
|
@ -4425,7 +4425,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
|
||||
this._skyboxLight.castShadow = true;
|
||||
|
||||
var d = 1000;
|
||||
var d = 10000;
|
||||
this._skyboxLight.shadow.camera.left = -d;
|
||||
this._skyboxLight.shadow.camera.right = d;
|
||||
this._skyboxLight.shadow.camera.top = d;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -8,8 +8,8 @@ import THREE from 'three';
|
|||
|
||||
export default function(container) {
|
||||
var camera = new THREE.PerspectiveCamera(45, 1, 1, 200000);
|
||||
camera.position.y = 400;
|
||||
camera.position.z = 400;
|
||||
camera.position.y = 4000;
|
||||
camera.position.z = 4000;
|
||||
|
||||
var updateSize = function() {
|
||||
camera.aspect = container.clientWidth / container.clientHeight;
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ class EnvironmentLayer extends Layer {
|
|||
|
||||
this._skyboxLight.castShadow = true;
|
||||
|
||||
var d = 1000;
|
||||
var d = 10000;
|
||||
this._skyboxLight.shadow.camera.left = -d;
|
||||
this._skyboxLight.shadow.camera.right = d;
|
||||
this._skyboxLight.shadow.camera.top = d;
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue