repo: janusweb
action: commit
revision: 
path_from: 
revision_from: b85959051aab93e5fafbfee55c0c400236b5bb5a:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit b85959051aab93e5fafbfee55c0c400236b5bb5a
Author: James Baicoianu 
Date:   Sun Jan 30 13:49:18 2022 -0800

    Added text wireframe property

diff --git a/scripts/text.js b/scripts/text.js
index 6b653db3dd3b96f3922c796ead5c18caa5e935e0..
index ..e05eb0958462d20888342a17c70095b1993654d3 100644
--- a/scripts/text.js
+++ b/scripts/text.js
@@ -26,6 +26,7 @@ elation.require(['engine.things.label'], function() {
         'roughness':       { type: 'float', default: null, min: 0, max: 1, set: this.updateMaterial, comment: 'Material roughness value' },
         'metalness':       { type: 'float', default: null, set: this.updateMaterial, comment: 'Material metalness value' },
         'envmap_id':       { type: 'string', set: this.updateMaterial, comment: 'Environment map texture ID (overrides skybox reflections)' },
+        'wireframe':       { type: 'boolean', default: false, set: this.updateMaterial, comment: 'Wireframe rendering' },
       });
       this.emptygeometry = new THREE.BufferGeometry();
       elation.events.add(this.engine, 'engine_frame', elation.bind(this, this.handleFrameUpdates));
@@ -91,7 +92,8 @@ elation.require(['engine.things.label'], function() {
         emissive: this.properties.emissive, 
         flatShading: false,
         depthTest: this.properties.depthTest,
-        reflectivity: .5
+        reflectivity: .5,
+        wireframe: this.wireframe,
       };
       if (this.room.pbr) {
         matargs.roughness = this.roughness;
@@ -233,6 +235,7 @@ elation.require(['engine.things.label'], function() {
           align:       [ 'property', 'align'],
           verticalalign:  [ 'property', 'verticalalign'],
           zalign: [ 'property', 'zalign'],
+          wireframe: [ 'property', 'wireframe'],
         };
       }
       return this._proxyobject;

-----END OF PAGE-----