Normand Briere
2019-08-22 6a145f6c81dfcbe0653eda27d042efb48daa7512
CameraPane.java
....@@ -113,6 +113,8 @@
113113 /*static*/ com.sun.opengl.util.texture.Texture cubemap; // Either custom or rgb
114114 /*static*/ com.sun.opengl.util.texture.Texture cubemapcustom;
115115 /*static*/ com.sun.opengl.util.texture.Texture cubemaprgb;
116
+ boolean transformMode;
117
+
116118 boolean reverseUP = false;
117119 static boolean frozen = false;
118120 boolean enablebackspace = false; // patch for back buffer refresh
....@@ -166,7 +168,7 @@
166168
167169
168170 // OPTIONS
169
- boolean Skinshader = true;
171
+ boolean Skinshader = false; // true;
170172 boolean cameraLight = false;
171173 boolean UVdebug = false;
172174 boolean Udebug = false;
....@@ -540,7 +542,8 @@
540542 LA.vecSub(pv/*.pos*/, rv/*.pos*/, obj.v1);
541543 LA.vecCross(obj.v0, obj.v1, obj.v2);
542544 LA.vecNormalize(obj.v2);
543
- gl.glNormal3f((float) obj.v2.x, (float) obj.v2.y, (float) obj.v2.z);
545
+
546
+ SetGLNormal(gl, (float) obj.v2.x, (float) obj.v2.y, (float) obj.v2.z);
544547 }
545548
546549 // P
....@@ -562,7 +565,7 @@
562565 y += ny * obj.NORMALPUSH;
563566 z += nz * obj.NORMALPUSH;
564567
565
- gl.glNormal3f(nx, ny, nz);
568
+ SetGLNormal(gl, nx, ny, nz);
566569 }
567570 gl.glColor4f(pv.AO, pv.AO, pv.AO, 1);
568571 SetColor(obj, pv);
....@@ -594,7 +597,7 @@
594597 y += ny * obj.NORMALPUSH;
595598 z += nz * obj.NORMALPUSH;
596599
597
- gl.glNormal3f(nx, ny, nz);
600
+ SetGLNormal(gl, nx, ny, nz);
598601 }
599602 //System.out.println("vertexq = " + qv.s + ", " + qv.t);
600603 // boolean locked = false;
....@@ -642,7 +645,7 @@
642645 y += ny * obj.NORMALPUSH;
643646 z += nz * obj.NORMALPUSH;
644647
645
- gl.glNormal3f(nx, ny, nz);
648
+ SetGLNormal(gl, nx, ny, nz);
646649 }
647650
648651 // if ((dot&4) == 0)
....@@ -1248,10 +1251,10 @@
12481251 {
12491252 if (n[count3] != 0 || n[count3 + 1] != 0 || n[count3 + 2] != 0)
12501253 {
1251
- gl.glNormal3f(n[count3], n[count3 + 1], n[count3 + 2]);
1254
+ SetGLNormal(gl, n[count3], n[count3 + 1], n[count3 + 2]);
12521255 } else
12531256 {
1254
- gl.glNormal3f(0, 0, 1);
1257
+ SetGLNormal(gl, 0, 0, 1);
12551258 }
12561259
12571260 if (c != null)
....@@ -1275,10 +1278,10 @@
12751278 {
12761279 if (n[count3] != 0 || n[count3 + 1] != 0 || n[count3 + 2] != 0)
12771280 {
1278
- gl.glNormal3f(n[count3], n[count3 + 1], n[count3 + 2]);
1281
+ SetGLNormal(gl, n[count3], n[count3 + 1], n[count3 + 2]);
12791282 } else
12801283 {
1281
- gl.glNormal3f(0, 0, 1);
1284
+ SetGLNormal(gl, 0, 0, 1);
12821285 }
12831286 if (c != null)
12841287 {
....@@ -1303,10 +1306,10 @@
13031306 {
13041307 if (n[count3] != 0 || n[count3 + 1] != 0 || n[count3 + 2] != 0)
13051308 {
1306
- gl.glNormal3f(n[count3], n[count3 + 1], n[count3 + 2]);
1309
+ SetGLNormal(gl, n[count3], n[count3 + 1], n[count3 + 2]);
13071310 } else
13081311 {
1309
- gl.glNormal3f(0, 0, 1);
1312
+ SetGLNormal(gl, 0, 0, 1);
13101313 }
13111314 if (c != null)
13121315 {
....@@ -1488,7 +1491,7 @@
14881491 {
14891492 if (!selectmode)
14901493 {
1491
- gl.glNormal3f((float) pv.norm.x, (float) pv.norm.y, (float) pv.norm.z);
1494
+ SetGLNormal(gl, (float) pv.norm.x, (float) pv.norm.y, (float) pv.norm.z);
14921495 gl.glColor4f(pv.AO, pv.AO, pv.AO, 1);
14931496
14941497 if (flipV)
....@@ -1817,7 +1820,7 @@
18171820
18181821 display.modelParams7[0] = 0;
18191822 display.modelParams7[1] = 1000;
1820
- display.modelParams7[2] = 0;
1823
+ display.modelParams7[2] = material.parallax;
18211824 display.modelParams7[3] = 0;
18221825
18231826 //display.modelParams6[0] = 100; // criss de bug de bump
....@@ -2050,9 +2053,9 @@
20502053 switch(viewcode)
20512054 {
20522055 case 0: return "main";
2053
- case 1: return "one";
2054
- case 2: return "two";
2055
- case 3: return "three";
2056
+ case 1: return "Red";
2057
+ case 2: return "Green";
2058
+ case 3: return "Blue";
20562059 case 4: return "light";
20572060 }
20582061
....@@ -2473,6 +2476,18 @@
24732476 return CreateBim(bytes, width, height);
24742477 }
24752478
2479
+ private void SetGLNormal(javax.media.opengl.GL gl, float nx, float ny, float nz)
2480
+ {
2481
+ gl.glNormal3f(nx, ny, nz);
2482
+
2483
+ if (ny > 0.9 || ny < -0.9)
2484
+ // Ground or ceiling
2485
+ gl.glVertexAttrib3f(4, 1, 0, 0);
2486
+ else
2487
+ // Walls
2488
+ gl.glVertexAttrib3f(4, 0, 1, 0);
2489
+ }
2490
+
24762491 /**/
24772492 class CacheTexture
24782493 {
....@@ -2515,7 +2530,7 @@
25152530 com.sun.opengl.util.texture.TextureIO.newTextureData(
25162531 getClass().getClassLoader().getResourceAsStream(name),
25172532 true,
2518
- com.sun.opengl.util.texture.TextureIO.PNG);
2533
+ GetFormat(name)); // com.sun.opengl.util.texture.TextureIO.PNG);
25192534 } catch (java.io.IOException e)
25202535 {
25212536 throw new javax.media.opengl.GLException(e);
....@@ -10688,9 +10703,18 @@
1068810703 static boolean init = false;
1068910704
1069010705 double[][] matrix = LA.newMatrix();
10706
+
10707
+ // This is to refresh the UI of the material panel.
10708
+ ObjEditor patchMaterial;
1069110709
1069210710 public void display(GLAutoDrawable drawable)
1069310711 {
10712
+ if (patchMaterial.patchMaterial)
10713
+ {
10714
+ patchMaterial.patchMaterial = false;
10715
+ patchMaterial.objectPanel.setSelectedIndex(1);
10716
+ }
10717
+
1069410718 if (Grafreed.savesound && Grafreed.hassound)
1069510719 {
1069610720 Grafreed.wav.save();
....@@ -11082,11 +11106,11 @@
1108211106 //
1108311107 // newenvy = -1;
1108411108
11085
- if (object.skyboxname != null && object.skyboxname.equals("cubemaps/default-skyboxes/rgb"))
11109
+ if (transformMode) // object.skyboxname != null && object.skyboxname.equals("cubemaps/default-skyboxes/rgb"))
1108611110 {
1108711111 if (cubemaprgb == null)
1108811112 {
11089
- cubemaprgb = LoadSkybox(object.skyboxname + "/", object.skyboxext, false);
11113
+ cubemaprgb = LoadSkybox("cubemaps/default-skyboxes/rgb2" + "/", "jpg", false);
1109011114 }
1109111115
1109211116 cubemap = cubemaprgb;
....@@ -11097,6 +11121,8 @@
1109711121 {
1109811122 if (!object.skyboxname.equals(this.loadedskyboxname))
1109911123 {
11124
+ if (cubemap != null && cubemap != cubemaprgb)
11125
+ cubemap.dispose();
1110011126 cubemapcustom = LoadSkybox(object.skyboxname + "/", object.skyboxext, false);
1110111127 loadedskyboxname = object.skyboxname;
1110211128 }
....@@ -12580,7 +12606,7 @@
1258012606 "PARAM params4 = program.env[4];" + // anisoV, cameralight, selfshadow, shadow
1258112607 "PARAM params5 = program.env[5];" + // texture, opacity, fakedepth, shadowbias
1258212608 "PARAM params6 = program.env[6];" + // bump, noise, borderfade, fog punchthrough
12583
- "PARAM params7 = program.env[7];" + // noise power, opacity power
12609
+ "PARAM params7 = program.env[7];" + // noise power, opacity power, parallax
1258412610 "PARAM options0 = program.env[63];" + // fog density, intensity, elevation
1258512611 "PARAM options1 = program.env[62];" + // fog rgb color
1258612612 "PARAM options2 = program.env[61];" + // image intensity, subsurface, lightsheen
....@@ -12825,7 +12851,7 @@
1282512851 "POW texSamp.a, texSamp.a, params6.w;" + // fog punch through shortcut
1282612852 // mar 2013 ??? "KIL alpha.a;" +
1282712853 "MOV alpha, texSamp.aaaa;" + // y;" +
12828
- "KIL alpha.a;" +
12854
+ "KIL alpha.a;" + // not sure with parallax mapping
1282912855 /*
1283012856 "MUL temp.xy, temp, two;" +
1283112857 "TXB bump, temp, texture[0], 2D;" +
....@@ -12911,11 +12937,6 @@
1291112937 "SUB bump0, bump0, half;" +
1291212938 "ADD bump, bump, bump0;" +
1291312939
12914
- "MOV temp.x, texSamp.a;" +
12915
- "LRP texSamp, params5.x, texSamp, one;" + // texture proportion
12916
- //"LRP texSamp0, params5.x, texSamp0, one;" +
12917
- "MOV texSamp.a, temp.x;" +
12918
-
1291912940 // double-sided
1292012941 /**/
1292112942 (doublesided?"DP3 temp.z, normal, eye;" +
....@@ -12932,19 +12953,62 @@
1293212953 "MOV normald, normal;" +
1293312954 "MOV normals, normal;" +
1293412955
12956
+ "MOV temp, fragment.texcoord[4];" +
12957
+
1293512958 // UV base
1293612959 //"DP3 UP.x,state.matrix.modelview.row[0],Y;" +
1293712960 //"DP3 UP.y,state.matrix.modelview.row[1],Y;" +
1293812961 //"DP3 UP.z,state.matrix.modelview.row[2],Y;" +
12939
- "DP3 UP.x,state.matrix.texture[7].row[0],Y;" +
12940
- "DP3 UP.y,state.matrix.texture[7].row[1],Y;" +
12941
- "DP3 UP.z,state.matrix.texture[7].row[2],Y;" +
12962
+ "DP3 UP.x,state.matrix.texture[7].row[0],temp;" +
12963
+ "DP3 UP.y,state.matrix.texture[7].row[1],temp;" +
12964
+ "DP3 UP.z,state.matrix.texture[7].row[2],temp;" +
12965
+ Normalize("UP") +
12966
+
1294212967 "XPD V, normal, UP;" +
1294312968 Normalize("V") +
1294412969 "XPD U, V, normal;" +
1294512970 Normalize("U") +
1294612971
1294712972 // parallax mapping
12973
+
12974
+ "DP3 temp2.x, V, eye;" +
12975
+ "DP3 temp2.y, U, eye;" +
12976
+ "DP3 temp2.z, normal, eye;" +
12977
+ "RCP temp2.z, temp2.z;" +
12978
+
12979
+ "DP3 temp2.w, texSamp, texSamp;" + // Height
12980
+ "RSQ temp2.w, temp2.w;" +
12981
+ "RCP temp2.w, temp2.w;" +
12982
+
12983
+ "SUB temp2.w, temp2.w, half;" +
12984
+// "SGE temp.x, temp2.w, eps.x;" +
12985
+// "MUL temp2.w, temp2.w, temp.x;" +
12986
+
12987
+ //"MOV texSamp, U;" +
12988
+
12989
+ "MUL temp2.z, temp2.z, temp2.w;" +
12990
+ "MUL temp2.z, temp2.z, params7.z;" + // parallax
12991
+
12992
+ "MUL temp2, temp2, temp2.z;" +
12993
+
12994
+ "MOV temp, fragment.texcoord[0];" +
12995
+
12996
+ "SUB temp, temp, temp2;" +
12997
+
12998
+ "TEX temp, temp, texture[0], 2D;" +
12999
+ "POW temp.a, temp.a, params6.w;" + // punch through
13000
+
13001
+ "ADD texSamp, temp, texSamp;" +
13002
+ "MUL texSamp.xyz, half, texSamp;" +
13003
+
13004
+ "MOV alpha, texSamp.aaaa;" +
13005
+
13006
+// parallax mapping
13007
+
13008
+ "MOV temp.x, texSamp.a;" +
13009
+ "LRP texSamp, params5.x, texSamp, one;" + // texture proportion
13010
+ //"LRP texSamp0, params5.x, texSamp0, one;" +
13011
+ "MOV texSamp.a, temp.x;" +
1294813012
1294913013 //"MOV temp, fragment.texcoord[0];" +
1295013014 //
....@@ -13415,8 +13479,12 @@
1341513479 program = programmin;
1341613480 }
1341713481
13418
- System.out.print("Program #" + mode + "; instructions = " + program.split(";").length + "; length = " + program.length());
13419
- System.out.println(" - " + (mode >> 3) + " lights; " + ((mode & 2) == 2 ? "anisoUV " : "") + ((mode & 4) == 4 ? "SoftShadow " : ""));
13482
+ if (Globals.DEBUG)
13483
+ {
13484
+ System.out.print("Program #" + mode + "; instructions = " + program.split(";").length + "; length = " + program.length());
13485
+ System.out.println(" - " + (mode >> 3) + " lights; " + ((mode & 2) == 2 ? "anisoUV " : "") + ((mode & 4) == 4 ? "SoftShadow " : ""));
13486
+ }
13487
+
1342013488 loadProgram(gl, GL.GL_FRAGMENT_PROGRAM_ARB, program);
1342113489
1342213490 //gl.glNewList(displayListID, GL.GL_COMPILE);
....@@ -13463,7 +13531,8 @@
1346313531 "\n" +
1346413532 "END\n";
1346513533
13466
- System.out.println("Program shadow #" + 0 + "; length = " + program.length());
13534
+ if (Globals.DEBUG)
13535
+ System.out.println("Program shadow #" + 0 + "; length = " + program.length());
1346713536 loadProgram(gl, GL.GL_FRAGMENT_PROGRAM_ARB, program);
1346813537
1346913538 //gl.glNewList(displayListID, GL.GL_COMPILE);
....@@ -13721,7 +13790,7 @@
1372113790 /*static*/ float[] modelParams4 = new float[]{0, 0, 0, 0}; // anisoV, cameralight, selfshadow, shadow
1372213791 /*static*/ float[] modelParams5 = new float[]{0, 0, 0, 0}; // texture, opacity, fakedepth, shadowbias
1372313792 /*static*/ float[] modelParams6 = new float[]{0, 0, 0, 0}; // bump, noise, borderfade, fog punchthrough
13724
- /*static*/ float[] modelParams7 = new float[]{0, 0, 0, 0}; // noise power, opacity power
13793
+ /*static*/ float[] modelParams7 = new float[]{0, 0, 0, 0}; // noise power, opacity power, parallax
1372513794
1372613795 //Object3D.cVector2[] vector2buffer;
1372713796
....@@ -13888,7 +13957,7 @@
1388813957 "PARAM p[4] = { state.matrix.projection }; # modelview projection matrix\n" +
1388913958 "PARAM zero = { 0.0, 0.0, 0.0, 1.0 };" +
1389013959 "PARAM half = { 0.5, 0.5, 0.5, 1.0 };" +
13891
- "PARAM one = { 1.0, 1.0, 1.0, 0.0 };" +
13960
+ "PARAM one = { 1.0, 1.0, 1.0, 1.0 };" +
1389213961 "PARAM two = { 2.0, 2.0, 2.0, 1.0 };" +
1389313962 "PARAM third = { 0.33333333333, 0.33333333333, 0.33333333333, 1.0 };" +
1389413963 //"PARAM v256 = { 256.0, 256.0, 256.0, 1.0 };" +
....@@ -13949,7 +14018,7 @@
1394914018 "DP4 temp.x,state.matrix.texture[0].inverse.row[0],vertex.texcoord;" +
1395014019 "DP4 temp.y,state.matrix.texture[0].inverse.row[1],vertex.texcoord;" +
1395114020 "DP4 temp.z,state.matrix.texture[0].inverse.row[2],vertex.texcoord;" +
13952
- //"MOV result.texcoord, vertex.texcoord;" +
14021
+ //"MOV result.texcoord, vertex.fogcoord;" +
1395314022 "MOV result.texcoord, temp;" +
1395414023 // border fade
1395514024 "MOV result.texcoord[3], vertex.texcoord;" +
....@@ -13996,7 +14065,9 @@
1399614065
1399714066 //"ADD temp.z, temp.z, one;" +
1399814067
13999
- "MOV result.color, temp;"
14068
+ "MOV result.texcoord[4], vertex.attrib[4];" + // U dir
14069
+
14070
+ "MOV result.color, temp;" // Normal
1400014071 : "MOV result.color, vertex.color;") +
1400114072 ((mode & VP_PROJECTION) != 0 ? "MOV result.color, zero;"
1400214073 : "") +
....@@ -14662,11 +14733,17 @@
1466214733 void GoDown(int mod)
1466314734 {
1466414735 MODIFIERS |= COMMAND;
14736
+ boolean isVR = (mouseMode&VR)!=0;
1466514737 /**/
1466614738 if((mod&SHIFT) == SHIFT)
14667
- manipCamera.BackForth(0, -speed*delta, 0); // getWidth());
14739
+ {
14740
+ if (isVR)
14741
+ manipCamera.RotateInterest(0, -speed);
14742
+ else
14743
+ manipCamera.RotatePosition(0, -speed);
14744
+ }
1466814745 else
14669
- manipCamera.RotatePosition(0, -speed);
14746
+ manipCamera.BackForth(0, -speed*delta, isVR?1000:0); // getWidth());
1467014747 /**/
1467114748 if ((mod & SHIFT) == SHIFT)
1467214749 {
....@@ -14676,6 +14753,8 @@
1467614753 mouseMode |= BACKFORTH;
1467714754 }
1467814755
14756
+ targetLookAt.set(manipCamera.lookAt);
14757
+
1467914758 //prevX = X = anchorX;
1468014759 prevY = Y = anchorY - (int) (renderCamera.Distance());
1468114760 }
....@@ -14684,10 +14763,17 @@
1468414763 {
1468514764 MODIFIERS |= COMMAND;
1468614765 /**/
14766
+ boolean isVR = (mouseMode&VR)!=0;
14767
+
1468714768 if((mod&SHIFT) == SHIFT)
14688
- manipCamera.BackForth(0, speed*delta, 0); // getWidth());
14769
+ {
14770
+ if (isVR)
14771
+ manipCamera.RotateInterest(0, speed);
14772
+ else
14773
+ manipCamera.RotatePosition(0, speed);
14774
+ }
1468914775 else
14690
- manipCamera.RotatePosition(0, speed);
14776
+ manipCamera.BackForth(0, speed*delta, isVR?1000:0); // getWidth());
1469114777 /**/
1469214778 if ((mod & SHIFT) == SHIFT)
1469314779 {
....@@ -14697,6 +14783,8 @@
1469714783 mouseMode |= BACKFORTH;
1469814784 }
1469914785
14786
+ targetLookAt.set(manipCamera.lookAt);
14787
+
1470014788 //prevX = X = anchorX;
1470114789 prevY = Y = anchorY + (int) (renderCamera.Distance());
1470214790 }
....@@ -14706,9 +14794,14 @@
1470614794 MODIFIERS |= COMMAND;
1470714795 /**/
1470814796 if((mod&SHIFT) == SHIFT)
14709
- manipCamera.Translate(speed*delta, 0, getWidth());
14797
+ manipCamera.Translate(speed*delta, 0, getWidth());
1471014798 else
14711
- manipCamera.RotatePosition(speed, 0);
14799
+ {
14800
+ if ((mouseMode&VR)!=0)
14801
+ manipCamera.RotateInterest(-speed, 0);
14802
+ else
14803
+ manipCamera.RotatePosition(speed, 0);
14804
+ }
1471214805 /**/
1471314806 if ((mod & SHIFT) == SHIFT)
1471414807 {
....@@ -14718,6 +14811,8 @@
1471814811 mouseMode |= ROTATE;
1471914812 } // TRANSLATE;
1472014813
14814
+ targetLookAt.set(manipCamera.lookAt);
14815
+
1472114816 prevX = X = anchorX - 10; // (int)(10*renderCamera.Distance());
1472214817 prevY = Y = anchorY;
1472314818 }
....@@ -14727,9 +14822,15 @@
1472714822 MODIFIERS |= COMMAND;
1472814823 /**/
1472914824 if((mod&SHIFT) == SHIFT)
14730
- manipCamera.Translate(-speed*delta, 0, getWidth());
14825
+ manipCamera.Translate(-speed*delta, 0, getWidth());
1473114826 else
14732
- manipCamera.RotatePosition(-speed, 0);
14827
+ {
14828
+ if ((mouseMode&VR)!=0)
14829
+ manipCamera.RotateInterest(speed, 0);
14830
+ else
14831
+ manipCamera.RotatePosition(-speed, 0);
14832
+ }
14833
+
1473314834 /**/
1473414835 if ((mod & SHIFT) == SHIFT)
1473514836 {
....@@ -14739,6 +14840,8 @@
1473914840 mouseMode |= ROTATE;
1474014841 } // TRANSLATE;
1474114842
14843
+ targetLookAt.set(manipCamera.lookAt);
14844
+
1474214845 prevX = X = anchorX + 10; // (int)(10*renderCamera.Distance());
1474314846 prevY = Y = anchorY;
1474414847 }
....@@ -15241,8 +15344,8 @@
1524115344 case 'K':
1524215345 KOMPACTTEXTURE ^= true;
1524315346 //textures.clear();
15244
- break;
15245
- case 'P': // Texture Projection macros
15347
+ // break;
15348
+ //case 'P': // Texture Projection macros
1524615349 // SAVETEXTURE ^= true;
1524715350 macromode = true;
1524815351 Udebug = Vdebug = NORMALdebug = false; programInitialized = false;
....@@ -15363,7 +15466,7 @@
1536315466 targetLookAt.set(manipCamera.lookAt);
1536415467 repaint();
1536515468 break;
15366
- case 'p':
15469
+ case 'P': // p':
1536715470 // c'est quoi ca au juste? spherical ^= true;
1536815471 Skinshader ^= true; programInitialized = false;
1536915472 repaint();
....@@ -16123,7 +16226,7 @@
1612316226 {
1612416227 switch (hitSomething)
1612516228 {
16126
- case Object3D.hitCenter: gr.setColor(Color.pink);
16229
+ case Object3D.hitCenter: gr.setColor(Color.white);
1612716230 gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2);
1612816231 break;
1612916232 case Object3D.hitRotate: gr.setColor(Color.yellow);
....@@ -16149,7 +16252,7 @@
1614916252 if (hasMarquee)
1615016253 {
1615116254 gr.setXORMode(Color.white);
16152
- gr.setColor(Color.red);
16255
+ gr.setColor(Color.white);
1615316256 if (!firstime)
1615416257 {
1615516258 gr.drawRect(prevmarqX, prevmarqY, prevmarqW, prevmarqH);
....@@ -16788,7 +16891,8 @@
1678816891 gl.glDisable(GL.GL_TEXTURE_GEN_R);
1678916892
1679016893 cubemap.disable();
16791
- ////cubemap.unbind();
16894
+ //cubemap.dispose();
16895
+
1679216896 if (CULLFACE)
1679316897 {
1679416898 gl.glEnable(gl.GL_CULL_FACE);
....@@ -16844,7 +16948,7 @@
1684416948 gl.glScalef(1.0f, -1.0f, 1.0f);
1684516949 }
1684616950
16847
- gl.glNormal3f(0.0f, 0.0f, 1.0f);
16951
+ SetGLNormal(gl, 0.0f, 0.0f, 1.0f);
1684816952
1684916953 float step = 2; // 0.1666f; //0.25f;
1685016954 float stepv = 2; // step * 1652 / 998;
....@@ -17324,6 +17428,7 @@
1732417428
1732517429 public void init(GLAutoDrawable drawable)
1732617430 {
17431
+ if (Globals.DEBUG)
1732717432 System.out.println("shadow buffer init");
1732817433
1732917434 GL gl = drawable.getGL();