Skip to content

Commit

Permalink
Update environments (#1067)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Apr 11, 2019
1 parent 05432a3 commit 1da3ea0
Show file tree
Hide file tree
Showing 46 changed files with 9 additions and 14 deletions.
Expand Up @@ -289,12 +289,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.
Binary file modified app/src/main/assets/cubemap/winter/posz.ktx
Binary file not shown.
5 changes: 1 addition & 4 deletions app/src/main/cpp/BrowserWorld.cpp
Expand Up @@ -1141,10 +1141,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
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
9 changes: 6 additions & 3 deletions app/src/main/res/values/options_values.xml
Expand Up @@ -5,24 +5,27 @@
<item>@string/developer_options_env_void</item>
<item>@string/developer_options_env_cave</item>
<item>@string/developer_options_env_offworld</item>
<item>@string/developer_options_env_underwater</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">
<item>void</item>
<item>cave</item>
<item>offworld</item>
<item>underwater</item>
<!--<item>underwater</item>-->
<item>winter</item>
<item>meadow</item>
</string-array>

<array name="developer_options_environments_images" translatable="false">
<item>@color/black</item>
<item>@drawable/environment_cave</item>
<item>@drawable/environment_offworld</item>
<item>@drawable/environment_underwater</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.
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 1da3ea0

Please sign in to comment.