File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export async function getTexture(imageUrl: string): Promise<Texture> {
37
37
const image = new Image ( ) ;
38
38
image . crossOrigin = "" ;
39
39
const texture = new Texture ( image ) ;
40
+ texture . colorSpace = "srgb" ;
40
41
image . onload = ( ) => {
41
42
texture . needsUpdate = true ;
42
43
resolve ( texture ) ;
@@ -154,7 +155,7 @@ export function createWalls(dimensions: Vec) {
154
155
}
155
156
156
157
export function createTopLight ( dimensions : Vec ) {
157
- const light = new DirectionalLight ( 0xffffff , 0.25 ) ;
158
+ const light = new DirectionalLight ( 0xffffff , 5 * 0.25 ) ;
158
159
light . position . set ( 0 , dimensions . y + 5 , 0 ) ;
159
160
light . castShadow = true ;
160
161
light . shadow . camera . left = - dimensions . x / 2 ;
@@ -166,7 +167,7 @@ export function createTopLight(dimensions: Vec) {
166
167
}
167
168
168
169
export function createFrontLight ( dimensions : Vec ) {
169
- const light = new DirectionalLight ( 0xffffff , 0.35 ) ;
170
+ const light = new DirectionalLight ( 0xffffff , 5 * 0.35 ) ;
170
171
light . position . set ( 0 , - dimensions . y * 0.1 , 10 ) ;
171
172
return light ;
172
173
}
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export class Gfx {
82
82
new Vector3 ( - 2 - pieceHudPos . x , pieceHudPos . y , pieceHudZ )
83
83
) ;
84
84
85
- this . ambientLight = new AmbientLight ( 0xffffff , 0.6 ) ;
85
+ this . ambientLight = new AmbientLight ( 0xffffff , 5 * 0.2 ) ;
86
86
this . directionalLightTop = createTopLight ( dimensions ) ;
87
87
this . directionalLightFront = createFrontLight ( dimensions ) ;
88
88
You can’t perform that action at this time.
0 commit comments