Skip to content
Permalink
Browse files

Rainbow material

  • Loading branch information...
makitsune committed Jan 22, 2019
1 parent 04ce822 commit 31e02da4f7006974129795725d589f0ddbb0b47c
Showing with 4 additions and 2 deletions.
  1. +4 −2 server-entity-scripts/rainbowMaterial.js
@@ -53,13 +53,15 @@ user data of a material entity
try { var userData = JSON.parse(entity.userData);
} catch(err) { return; }

Entities.editEntity(entityID, {materialURL: "materialData"});

//var unlit = (userData.unlit!=undefined)? userData.unlit: false;
var speed = (userData.speed!=undefined)? userData.speed: 1;
var emission = (userData.emission!=undefined)? userData.emission: 2;
var saturation = (userData.saturation!=undefined)? userData.saturation: 1;
var value = (userData.value!=undefined)? userData.value: 1;

//materialData.materials.unlit = unlit;
Entities.editEntity(entityID, {materialURL: "materialData"});

var hue = 0;

interval = Script.setInterval(function() {

0 comments on commit 31e02da

Please sign in to comment.
You can’t perform that action at this time.