mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-01 01:35:11 +00:00
revert flatShading initial state
This commit is contained in:
parent
fa0781595d
commit
710afc90b9
1 changed files with 2 additions and 2 deletions
|
@ -210,7 +210,7 @@ class ThreeViewer extends React.PureComponent<Props, State> {
|
||||||
config.color = this.materialColor;
|
config.color = this.materialColor;
|
||||||
// Reset material
|
// Reset material
|
||||||
this.material.color.set(config.color);
|
this.material.color.set(config.color);
|
||||||
this.material.flatShading = false;
|
this.material.flatShading = true;
|
||||||
this.material.shininess = 30;
|
this.material.shininess = 30;
|
||||||
this.material.wireframe = false;
|
this.material.wireframe = false;
|
||||||
// Reset autoRotate
|
// Reset autoRotate
|
||||||
|
@ -397,7 +397,7 @@ class ThreeViewer extends React.PureComponent<Props, State> {
|
||||||
// Create model material
|
// Create model material
|
||||||
this.material = new THREE.MeshPhongMaterial({
|
this.material = new THREE.MeshPhongMaterial({
|
||||||
depthWrite: true,
|
depthWrite: true,
|
||||||
flatShading: false,
|
flatShading: true,
|
||||||
vertexColors: THREE.FaceColors,
|
vertexColors: THREE.FaceColors,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue