Skip to content

Commit

Permalink
Continuing to update deps and fixing things
Browse files Browse the repository at this point in the history
  • Loading branch information
fsereno committed Jul 30, 2024
1 parent a643fda commit 9a6de0e
Show file tree
Hide file tree
Showing 3 changed files with 1,552 additions and 1,841 deletions.
8 changes: 4 additions & 4 deletions app/app_home/src/homeThreeModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const homeThreeModule = (async () => {

const setRenderer = () => {
let container = document.getElementById(CONTAINERID);
renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(container.offsetWidth, container.offsetHeight);
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
Expand Down Expand Up @@ -188,8 +188,8 @@ export const homeThreeModule = (async () => {
}

const createPlane = () => {
const planeGeometry = new THREE.PlaneBufferGeometry(50, 50, 1, 1 );
const planeMaterial = new THREE.MeshPhongMaterial( {
const planeGeometry = new THREE.PlaneGeometry(50, 50, 1, 1 );
const planeMaterial = new THREE.MeshPhongMaterial( {
color: 0x999999,
shininess: 150,
map: planeTexture
Expand Down Expand Up @@ -256,7 +256,7 @@ export const homeThreeModule = (async () => {
setResizeEventHandler();
createCubes();
createParticles(20000, 10);
addLight(0xFFFFFF, 2, 500, 0, 10, 5);
addLight(0xFFFFFF, 500, 1000, 0, 10, 10);
setMouseMoved();
initControls();
setAnimationLoop();
Expand Down
Loading

0 comments on commit 9a6de0e

Please sign in to comment.