Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MSDFText call to translate() for newer versions of three.js and clean up to be deprecated function calls #274

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# three-mesh-ui

<a href="https://three-mesh-ui.herokuapp.com/#interactive_button">
<a href="https://felixmariotto.github.io/three-mesh-ui/#interactive_button">
<img alt="buttons example" target="_blank" src="https://felixmariotto.s3.eu-west-3.amazonaws.com/three-mesh-ui-teasers/buttons_opti.gif" width="45%">
</a>

<a href="https://three-mesh-ui.herokuapp.com/#hidden_overflow">
<a href="https://felixmariotto.github.io/three-mesh-ui/#hidden_overflow">
<img alt="tuto example" target="_blank" src="https://felixmariotto.s3.eu-west-3.amazonaws.com/three-mesh-ui-teasers/hidden_overflow_opti.gif" width="45%">
</a>

<a href="https://three-mesh-ui.herokuapp.com/#nested_blocks">
<a href="https://felixmariotto.github.io/three-mesh-ui/#nested_blocks">
<img alt="big text example" target="_blank" src="https://felixmariotto.s3.eu-west-3.amazonaws.com/three-mesh-ui-teasers/nested_layout_opti.gif" width="45%">
</a>

<a href="https://three-mesh-ui.herokuapp.com/#keyboard">
<a href="https://felixmariotto.github.io/three-mesh-ui/#keyboard">
<img alt="big text example" target="_blank" src="https://felixmariotto.s3.eu-west-3.amazonaws.com/three-mesh-ui-teasers/keyboard_opti.gif" width="45%">
</a>

Expand Down
8 changes: 4 additions & 4 deletions examples/interactive_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function init() {
renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );
renderer.outputEncoding = THREE.sRGBEncoding;
renderer.outputColorSpace = THREE.SRGBColorSpace;
renderer.xr.enabled = true;
document.body.appendChild( VRButton.createButton( renderer ) );
document.body.appendChild( renderer.domElement );
Expand Down Expand Up @@ -141,17 +141,17 @@ function init() {
//

const sphere = new THREE.Mesh(
new THREE.IcosahedronBufferGeometry( 0.3, 1 ),
new THREE.IcosahedronGeometry( 0.3, 1 ),
new THREE.MeshStandardMaterial( { color: 0x3de364, flatShading: true } )
);

const box = new THREE.Mesh(
new THREE.BoxBufferGeometry( 0.45, 0.45, 0.45 ),
new THREE.BoxGeometry( 0.45, 0.45, 0.45 ),
new THREE.MeshStandardMaterial( { color: 0x643de3, flatShading: true } )
);

const cone = new THREE.Mesh(
new THREE.ConeBufferGeometry( 0.28, 0.5, 10 ),
new THREE.ConeGeometry( 0.28, 0.5, 10 ),
new THREE.MeshStandardMaterial( { color: 0xe33d4e, flatShading: true } )
);

Expand Down
2 changes: 1 addition & 1 deletion examples/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function init() {
renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );
renderer.outputEncoding = THREE.sRGBEncoding;
renderer.outputColorSpace = THREE.SRGBColorSpace;
renderer.xr.enabled = true;
document.body.appendChild( VRButton.createButton( renderer ) );
document.body.appendChild( renderer.domElement );
Expand Down
2 changes: 1 addition & 1 deletion examples/utils/VRControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function VRControl( renderer ) {
transparent: true
} );

const geometry = new THREE.BoxBufferGeometry( 0.004, 0.004, 0.35 );
const geometry = new THREE.BoxGeometry( 0.004, 0.004, 0.35 );

geometry.translate( 0, 0, -0.15 );

Expand Down
Loading