kfeditor better light
This commit is contained in:
@@ -32,9 +32,8 @@ export class kfArena{
|
||||
// Lights
|
||||
const light = new THREE.DirectionalLight(0xffffff, 1)
|
||||
light.position.set(5, 5, 5)
|
||||
light.intensity = 2
|
||||
this.scene.add(light)
|
||||
this.scene.add(new THREE.AmbientLight(0xffffff, 0.4))
|
||||
this.scene.add(new THREE.AmbientLight(0xffffff, .4))
|
||||
|
||||
this.grid = new THREE.GridHelper(this.sceneSize.x, this.sceneSize.x, 0x8888AA, 0x8888AA)
|
||||
this.grid.layers.set(1)
|
||||
@@ -43,7 +42,7 @@ export class kfArena{
|
||||
// Base plane
|
||||
const planeGeo = new THREE.PlaneGeometry(100, 100)
|
||||
const planeMat = new THREE.MeshBasicMaterial({
|
||||
color: 0xaaaacc,
|
||||
color: 0x8888aa,
|
||||
opacity: 0.3,
|
||||
transparent: true, // needed for opacity < 1 to take effect
|
||||
side: THREE.DoubleSide
|
||||
@@ -124,7 +123,7 @@ export class kfArena{
|
||||
}
|
||||
|
||||
|
||||
addAgent(typeId, aid, properties, values){ console.log('==addAgent==>',typeId, aid, properties, values)
|
||||
addAgent(typeId, aid, properties, values){
|
||||
const agentSprite = this.agentSprites.find(item => item.atp_id==typeId)
|
||||
if(!agentSprite) {
|
||||
console.warn(`No sprite for type: ${typeId}`)
|
||||
|
||||
Reference in New Issue
Block a user