repo: janusweb action: commit revision: path_from: revision_from: 636c0cb770e0ebe4a91d401ca0b5b7b43f808279: path_to: revision_to:
commit 636c0cb770e0ebe4a91d401ca0b5b7b43f808279 Author: James BaicoianuDate: Wed Mar 28 00:11:16 2018 -0700 Only set material roughness if using pbr diff --git a/scripts/text.js b/scripts/text.js
--- a/scripts/text.js
+++ b/scripts/text.js
@@ -67,9 +67,11 @@ elation.require(['engine.things.label'], function() {
emissive: this.properties.emissive,
shading: THREE.SmoothShading,
depthTest: this.properties.depthTest,
- roughness: .5,
reflectivity: .5
};
+ if (this.room.pbr) {
+ matargs.roughness = .5;
+ }
var material = (this.room.pbr ? new THREE.MeshPhysicalMaterial(matargs) : new THREE.MeshPhongMaterial(matargs));
if (this.properties.opacity < 1.0) {
-----END OF PAGE-----