Made seasurface overlay to enable skybox to be smaller. #story[1261]
This commit is contained in:
@@ -33,11 +33,12 @@ public class SkyBox {
|
||||
}
|
||||
|
||||
private void makeSkyBox() {
|
||||
addTop();
|
||||
//addTop();
|
||||
addFront();
|
||||
addBack();
|
||||
addLeft();
|
||||
addRight();
|
||||
addSeaOverlay();
|
||||
}
|
||||
|
||||
private void addTop() {
|
||||
@@ -142,6 +143,11 @@ public class SkyBox {
|
||||
return surface;
|
||||
}
|
||||
|
||||
private void addSeaOverlay() {
|
||||
SeaSurface seaSurface = new SeaSurface(size * 3, 200, x, y - size/4 + 1, z);
|
||||
skyBoxPlanes.add(seaSurface.getSurface());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create texture for uv mapping
|
||||
|
||||
Reference in New Issue
Block a user