Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Update environments #1067

Merged
merged 1 commit into from
Apr 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
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
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
9 changes: 6 additions & 3 deletions app/src/main/res/values/options_values.xml
Original file line number Diff line number Diff line change
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
Loading
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
Loading
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
Loading
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
Loading
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
Loading
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
Loading
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.
Loading
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.
Loading
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.
Loading
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.
Loading
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.
Loading
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.
Loading
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
Loading
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
Loading
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
Loading
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
Loading
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.