File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 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 ,
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments