From 37a86b2983e112804dc8ee80e7c759fb6df337e4 Mon Sep 17 00:00:00 2001 From: "Diego F. Goberna" Date: Thu, 6 Dec 2018 02:00:54 +0100 Subject: [PATCH] brighter beats --- src/components/beat.js | 6 ++++++ src/constants/colors.js | 4 ++-- src/templates/gameMenu.html | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/components/beat.js b/src/components/beat.js index 36cb14f..d4ce4cf 100644 --- a/src/components/beat.js +++ b/src/components/beat.js @@ -257,6 +257,8 @@ AFRAME.registerComponent('beat', { metalness: 0.9, roughness: 0.10, sphericalEnvMap: '#envmapTexture', + emissive: this.materialColor[this.data.color], + emissiveIntensity: 0.27, color: this.materialColor[this.data.color] }); this.setObjModelFromTemplate(blockEl, this.models[this.data.type]); @@ -369,6 +371,8 @@ AFRAME.registerComponent('beat', { metalness: 0.8, roughness: 0.12, sphericalEnvMap: '#envmapTexture', + emissive: this.materialColor[this.data.color], + emissiveIntensity: 0.27, color: this.materialColor[this.data.color], side: 'double' }); @@ -386,6 +390,8 @@ AFRAME.registerComponent('beat', { metalness: 0.8, roughness: 0.12, sphericalEnvMap: '#envmapTexture', + emissive: this.materialColor[this.data.color], + emissiveIntensity: 0.27, color: this.materialColor[this.data.color], side: 'double' }); diff --git a/src/constants/colors.js b/src/constants/colors.js index 1e12d79..b743d58 100644 --- a/src/constants/colors.js +++ b/src/constants/colors.js @@ -19,8 +19,8 @@ module.exports = { TEXT_NORMAL: '#444', TEXT_BOLD: '#888', - BEAT_RED: '#290404', - BEAT_BLUE: '#08083E', + BEAT_RED: '#570808', + BEAT_BLUE: '#10106A', MINE_RED: '#070304', MINE_RED_EMISSION: '#090707', diff --git a/src/templates/gameMenu.html b/src/templates/gameMenu.html index dafe29d..e939ffe 100644 --- a/src/templates/gameMenu.html +++ b/src/templates/gameMenu.html @@ -13,8 +13,8 @@ - - + +