color pallete

This commit is contained in:
ericrius1 2016-03-08 16:58:42 -08:00
parent f7028cef6e
commit a236fceead
2 changed files with 11 additions and 10 deletions

View file

@ -33,8 +33,8 @@
max: 1000 max: 1000
}; };
_this.canCreateFlower = true; _this.canCreateFlower = true;
// _this.SHADER_URL = "https://s3-us-west-1.amazonaws.com/hifi-content/eric/shaders/flower.fs?v1"; _this.SHADER_URL = "https://s3-us-west-1.amazonaws.com/hifi-content/eric/shaders/flower.fs";
_this.SHADER_URL = "file:///C:/Users/Eric/hifi/unpublishedScripts/DomainContent/Home/plant/flower.fs"; // _this.SHADER_URL = "file:///C:/Users/Eric/hifi/unpublishedScripts/DomainContent/Home/plant/flower.fs";
_this.flowerHSLColors = [{ _this.flowerHSLColors = [{
hue: 19 / 360, hue: 19 / 360,
@ -77,8 +77,8 @@
// Reduces flower overlap // Reduces flower overlap
return; return;
} }
var xzGrowthRate = randFloat(0.00008, 0.00018); var xzGrowthRate = randFloat(0.00006, 0.00016);
var growthRate = {x: xzGrowthRate, y: randFloat(0.001, 0.0035), z: xzGrowthRate}; var growthRate = {x: xzGrowthRate, y: randFloat(0.001, 0.003), z: xzGrowthRate};
var flower = { var flower = {
dimensions: { dimensions: {
@ -88,7 +88,7 @@
}, },
startingPosition: position, startingPosition: position,
rotation: Quat.rotationBetween(Vec3.UNIT_Y, surfaceNormal), rotation: Quat.rotationBetween(Vec3.UNIT_Y, surfaceNormal),
maxYDimension: randFloat(0.5, 1.3), maxYDimension: randFloat(0.4, 1.1),
// startingHSLColor: { // startingHSLColor: {
// hue: 80 / 360, // hue: 80 / 360,
// saturation: 0.47, // saturation: 0.47,
@ -144,7 +144,8 @@
preload: function(entityID) { preload: function(entityID) {
_this.entityID = entityID; _this.entityID = entityID;
} },
}; };
// entity scripts always need to return a newly constructed object of our type // entity scripts always need to return a newly constructed object of our type

View file

@ -129,10 +129,10 @@ var waterSpout = Entities.addEntity({
}); });
function cleanup() { function cleanup() {
Entities.deleteEntity(plant); // Entities.deleteEntity(plant);
Entities.deleteEntity(bowl); // Entities.deleteEntity(bowl);
Entities.deleteEntity(waterCan); // Entities.deleteEntity(waterCan);
Entities.deleteEntity(waterSpout); // Entities.deleteEntity(waterSpout);
} }