@@ -934,7 +934,6 @@ function initialize() {
934
934
var viewProjection = new Float32Array ( 16 ) ;
935
935
var worldViewProjection = new Float32Array ( 16 ) ;
936
936
var viewInverse = new Float32Array ( 16 ) ;
937
- var viewProjectionInverse = new Float32Array ( 16 ) ;
938
937
var skyView = new Float32Array ( 16 ) ;
939
938
var skyViewProjection = new Float32Array ( 16 ) ;
940
939
var skyViewProjectionInverse = new Float32Array ( 16 ) ;
@@ -958,20 +957,6 @@ function initialize() {
958
957
var skyConst = { viewProjectionInverse : skyViewProjectionInverse } ;
959
958
var skyPer = { } ;
960
959
961
- // Sand uniforms.
962
- var sandConst = {
963
- viewInverse : viewInverse ,
964
- lightWorldPos : lightWorldPos ,
965
- lightColor : one4 ,
966
- specular : one4 ,
967
- shininess : 5 ,
968
- specularFactor : 0.3 } ;
969
- var sandPer = {
970
- world : world ,
971
- worldViewProjection : worldViewProjection ,
972
- worldInverse : worldInverse ,
973
- worldInverseTranspose : worldInverseTranspose } ;
974
-
975
960
// Generic uniforms.
976
961
var genericConst = {
977
962
viewInverse : viewInverse ,
@@ -1302,10 +1287,6 @@ function initialize() {
1302
1287
target ,
1303
1288
up ) ;
1304
1289
}
1305
- var uiMatrix = new Float32Array ( 16 ) ;
1306
- //calculateViewMatrix(uiMatrix, pose.orientation, [0, 0, 10]);
1307
- //g_ui.render(projection, fast.matrix4.inverse(uiMatrix, fast.matrix4.translation(uiMatrix, [0, 0, 6])));
1308
- //var uiMatrix = new Float32Array(16);
1309
1290
if ( g . net . slave ) {
1310
1291
// compute X fov from y fov
1311
1292
var fovy = math . degToRad ( g . globals . fieldOfView * g . net . fovFudge ) ;
@@ -1317,8 +1298,6 @@ function initialize() {
1317
1298
}
1318
1299
fast . matrix4 . inverse ( view , viewInverse ) ;
1319
1300
fast . matrix4 . mul ( viewProjection , view , projection ) ;
1320
- fast . matrix4 . inverse ( viewProjectionInverse , viewProjection ) ;
1321
- //g_ui.render(projection, fast.matrix4.inverse(uiMatrix, fast.matrix4.translation(uiMatrix, [0, 0, 16])));
1322
1301
1323
1302
fast . matrix4 . copy ( skyView , view ) ;
1324
1303
skyView [ 12 ] = 0 ;
0 commit comments