Skip to content

Commit 0112556

Browse files
committed
edit.
1 parent 24c3a3e commit 0112556

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

settings.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
0
77
],
88
"background_color": [
9-
12,
10-
145,
11-
239,
9+
127,
10+
127,
11+
127,
1212
51.0
1313
],
1414
"fullscreen": false,
15-
"floor": false,
16-
"lines": false,
15+
"floor": true,
16+
"lines": true,
1717
"cube": false,
1818
"demo": false,
19-
"polygon_marker": true,
19+
"polygon_marker": false,
2020
"polygon_count": true,
21-
"lighting": true,
21+
"lighting": false,
2222
"light0_position": [
2323
0.0,
2424
1.0,

src/net/fexcraft/app/fmt/FMTB.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ private void initOpenGL(){
223223
GL11.glEnable(GL11.GL_COLOR_MATERIAL);
224224
GL11.glColorMaterial(GL11.GL_FRONT_AND_BACK,GL11.GL_AMBIENT_AND_DIFFUSE);
225225
this.setLightPos(Settings.light0_position);
226+
if(!Settings.lighting()) GL11.glDisable(GL11.GL_LIGHTING);
226227
//
227228
GL11.glEnable(GL11.GL_TEXTURE_2D);
228229
GL11.glShadeModel(GL11.GL_SMOOTH);

0 commit comments

Comments
 (0)