Skip to content

Commit

Permalink
Update environments
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Apr 9, 2019
1 parent a18a4fe commit 404b67e
Show file tree
Hide file tree
Showing 44 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,7 @@ public void setMaxWindowHeight(int aMaxWindowHeight) {
}

public String getEnvironment() {
String env = mPrefs.getString(mContext.getString(R.string.settings_key_env), ENV_DEFAULT);
// Remove when the meadow is ready
if (env.equalsIgnoreCase("meadow")) {
env = ENV_DEFAULT;
}
return env;
return mPrefs.getString(mContext.getString(R.string.settings_key_env), ENV_DEFAULT);
}

public void setEnvironment(String aEnv) {
Expand Down
Binary file modified app/src/main/assets/cubemap/meadow/negx.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/meadow/negy.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/meadow/negz.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/meadow/posx.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/meadow/posy.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/meadow/posz.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/underwater/negx.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/underwater/negy.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/underwater/negz.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/underwater/posx.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/underwater/posy.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/underwater/posz.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/winter/negx.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/winter/negy.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/winter/negz.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/winter/posx.ktx
Binary file not shown.
Binary file modified app/src/main/assets/cubemap/winter/posy.ktx
Binary file not shown.
5 changes: 1 addition & 4 deletions app/src/main/cpp/BrowserWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1131,10 +1131,7 @@ BrowserWorld::CreateSkyBox(const std::string& aBasePath, const std::string& aExt
const bool empty = aBasePath == "cubemap/void";
const std::string extension = aExtension.empty() ? ".ktx" : aExtension;
const GLenum glFormat = extension == ".ktx" ? GL_COMPRESSED_RGB8_ETC2 : GL_RGB8;
float size = 1024;
if (aBasePath == "cubemap/underwater" || aBasePath == "cubemap/winter") {
size = 1000;
}
const float size = 1024;
if (m.skybox && empty) {
m.skybox->SetVisible(false);
return;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/options_environment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
style="@style/scrollbar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="0dp"
android:paddingRight="15dp"
android:layout_above="@+id/separatorBottom"
android:layout_below="@+id/separatorTop">

Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/options_values.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<item>@string/developer_options_env_offworld</item>
<item>@string/developer_options_env_underwater</item>
<item>@string/developer_options_env_winter</item>
<item>@string/developer_options_env_meadow</item>
</string-array>

<string-array name="developer_options_environments_values" translatable="false">
Expand All @@ -15,6 +16,7 @@
<item>offworld</item>
<item>underwater</item>
<item>winter</item>
<item>meadow</item>
</string-array>

<array name="developer_options_environments_images" translatable="false">
Expand All @@ -23,6 +25,7 @@
<item>@drawable/environment_offworld</item>
<item>@drawable/environment_underwater</item>
<item>@drawable/environment_winter</item>
<item>@drawable/environment_meadow</item>
</array>

<!-- Pointer Options -->
Expand Down
Binary file modified app/src/uncompressed_assets/main/assets/cubemap/meadow/negx.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/uncompressed_assets/main/assets/cubemap/meadow/negy.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/uncompressed_assets/main/assets/cubemap/meadow/negz.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/uncompressed_assets/main/assets/cubemap/meadow/posx.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/uncompressed_assets/main/assets/cubemap/meadow/posy.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/uncompressed_assets/main/assets/cubemap/meadow/posz.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/uncompressed_assets/main/assets/cubemap/winter/negx.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/uncompressed_assets/main/assets/cubemap/winter/negy.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/uncompressed_assets/main/assets/cubemap/winter/negz.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/uncompressed_assets/main/assets/cubemap/winter/posx.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/uncompressed_assets/main/assets/cubemap/winter/posy.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 404b67e

Please sign in to comment.