aesthetics: lights for first section

This commit is contained in:
FMS-Cat
2021-03-29 23:20:53 +09:00
parent 38a4b33cb7
commit aac19f3d18

View File

@@ -12,7 +12,8 @@ export class LightsFirst extends Entity {
public constructor( { scenes }: LightsFirstOptions ) {
super();
const light = new LightEntity( {
// -- 1 ----------------------------------------------------------------------------------------
const light1 = new LightEntity( {
scenes,
shadowMapFov: 30.0,
shadowMapNear: 1.0,
@@ -20,11 +21,26 @@ export class LightsFirst extends Entity {
namePrefix: process.env.DEV && 'lightFirst',
} );
light.color = [ 100.0, 100.0, 100.0 ];
light.transform.lookAt( new Vector3( [ 4.0, 4.0, 4.0 ] ) );
light1.color = [ 400.0, 400.0, 400.0 ];
light1.transform.lookAt( new Vector3( [ 4.0, 4.0, 4.0 ] ) );
this.children.push( light );
this.children.push( light1 );
this.lights = [ light ];
// -- 2 ----------------------------------------------------------------------------------------
const light2 = new LightEntity( {
scenes,
shadowMapFov: 30.0,
shadowMapNear: 1.0,
shadowMapFar: 20.0,
namePrefix: process.env.DEV && 'lightFirst',
} );
light2.color = [ 100.0, 140.0, 200.0 ];
light2.transform.lookAt( new Vector3( [ -4.0, 0.0, -4.0 ] ) );
this.children.push( light2 );
// -- haha -------------------------------------------------------------------------------------
this.lights = [ light1, light2 ];
}
}