@@ -971,7 +971,7 @@ export function render3D(
971971 const ll = Math . sqrt ( lx * lx + ly * ly + lz * lz ) ;
972972 gl . uniform3f ( uLightDir , lx / ll , ly / ll , lz / ll ) ;
973973 // Flat shading in ortho (2D) mode, lit shading in perspective (3D)
974- gl . uniform1f ( uAmbient , 0.7 + 0.3 * orthoBlend ) ;
974+ gl . uniform1f ( uAmbient , 0.85 + 0.15 * orthoBlend ) ;
975975 for ( const mesh of state . meshes ) {
976976 gl . uniform3f ( uColor , mesh . color [ 0 ] , mesh . color [ 1 ] , mesh . color [ 2 ] ) ;
977977 gl . bindVertexArray ( mesh . vao ) ;
@@ -986,7 +986,7 @@ export function render3D(
986986 const lx = 0.4 , ly = 0.3 , lz = 0.8 ;
987987 const ll = Math . sqrt ( lx * lx + ly * ly + lz * lz ) ;
988988 gl . uniform3f ( state . uInstLightDir , lx / ll , ly / ll , lz / ll ) ;
989- gl . uniform1f ( state . uInstAmbient , 0.7 + 0.3 * orthoBlend ) ;
989+ gl . uniform1f ( state . uInstAmbient , 0.85 + 0.15 * orthoBlend ) ;
990990
991991 // Draw top faces
992992 gl . uniform1f ( state . uInstTopFace , 1.0 ) ;
@@ -1010,7 +1010,7 @@ export function render3D(
10101010 gl . useProgram ( state . instSideProgram ) ;
10111011 gl . uniformMatrix4fv ( state . uInstSideMVP , false , vp ) ;
10121012 gl . uniform3f ( state . uInstSideLightDir , lx / ll , ly / ll , lz / ll ) ;
1013- gl . uniform1f ( state . uInstSideAmbient , 0.7 + 0.3 * orthoBlend ) ;
1013+ gl . uniform1f ( state . uInstSideAmbient , 0.85 + 0.15 * orthoBlend ) ;
10141014 for ( const mesh of state . instancedMeshes ) {
10151015 if ( visibleGdsLayers && mesh . gdsLayer != null && ! visibleGdsLayers . has ( mesh . gdsLayer ) ) continue ;
10161016 if ( ! mesh . sideVao || ! mesh . sideVertCount ) continue ;
0 commit comments