|
|
@ -147,7 +147,6 @@ import com.jme3.texture.TextureCubeMap; |
|
|
|
float delta = 1 / (float) (size - 1); |
|
|
|
float delta = 1 / (float) (size - 1); |
|
|
|
float sideV, sideS = 1, forwardU = 1, forwardV, upS; |
|
|
|
float sideV, sideS = 1, forwardU = 1, forwardV, upS; |
|
|
|
|
|
|
|
|
|
|
|
long time = System.currentTimeMillis(); |
|
|
|
|
|
|
|
for (int x = 0; x < size; ++x) { |
|
|
|
for (int x = 0; x < size; ++x) { |
|
|
|
sideV = 1; |
|
|
|
sideV = 1; |
|
|
|
forwardV = 1; |
|
|
|
forwardV = 1; |
|
|
@ -179,8 +178,6 @@ import com.jme3.texture.TextureCubeMap; |
|
|
|
forwardU = FastMath.clamp(forwardU - delta, 0, 1); |
|
|
|
forwardU = FastMath.clamp(forwardU - delta, 0, 1); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
System.out.println(System.currentTimeMillis() - time); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new TextureCubeMap(image); |
|
|
|
return new TextureCubeMap(image); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|