Skip to content

Commit

Permalink
Fix other uses of PlaneGeometry
Browse files Browse the repository at this point in the history
  • Loading branch information
netpro2k committed Apr 8, 2019
1 parent 720376c commit b8f5fa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/camera-tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ AFRAME.registerComponent("camera-tool", {
this.el.setObject3D("mesh", mesh);

const width = 0.28;
const geometry = new THREE.PlaneGeometry(width, width / this.camera.aspect);
const geometry = new THREE.PlaneBufferGeometry(width, width / this.camera.aspect);

if (enableCameraViewport) {
const screen = new THREE.Mesh(geometry, material);
Expand Down
2 changes: 1 addition & 1 deletion src/react-components/chat-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export async function createInWorldLogMessage({ name, type, body }) {
material.generateMipmaps = false;
material.needsUpdate = true;

const geometry = new THREE.PlaneGeometry();
const geometry = new THREE.PlaneBufferGeometry(1, 1, 1, 1, texture.flipY);
const mesh = new THREE.Mesh(geometry, material);
meshEntity.setObject3D("mesh", mesh);
meshEntity.meshMaterial = material;
Expand Down

0 comments on commit b8f5fa6

Please sign in to comment.