mirror of
https://github.com/FMS-Cat/condition.git
synced 2025-08-11 16:34:10 +02:00
aesthetics: lights for first section
This commit is contained in:
@@ -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 ];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user