mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-15 16:16:10 +09:00
some sort of error screen impl
This commit is contained in:
39
assets/loadingCircle.frag
Normal file
39
assets/loadingCircle.frag
Normal file
@@ -0,0 +1,39 @@
|
||||
#version 120
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
|
||||
varying vec4 v_color;
|
||||
varying vec2 v_texCoords;
|
||||
uniform sampler2D u_texture;
|
||||
|
||||
uniform float rcount = 64.0;
|
||||
uniform float gcount = 64.0;
|
||||
uniform float bcount = 64.0;
|
||||
uniform float acount = 1.0;
|
||||
|
||||
uniform vec2 circleCentrePoint;
|
||||
uniform vec2 colorCentrePoint;
|
||||
uniform float circleSize;
|
||||
|
||||
void main() {
|
||||
vec2 screenCoord = gl_FragCoord.xy;
|
||||
|
||||
float distToCircleCentre =
|
||||
(screenCoord.x - circleCentrePoint.x + 0.5) * (screenCoord.x - circleCentrePoint.x + 0.5) +
|
||||
(screenCoord.y - circleCentrePoint.y + 0.5) * (screenCoord.y - circleCentrePoint.y + 0.5);
|
||||
float circleSizeSqr = circleSize * circleSize / 4;
|
||||
|
||||
|
||||
if (distToCircleCentre <= circleSizeSqr) {
|
||||
gl_FragColor = vec4(0.993, 0.993, 0.993, 1.0);
|
||||
}
|
||||
else if (distToCircleCentre <= circleSizeSqr + 200) { // dunno why it's 200; 2000 makes 10px feather
|
||||
gl_FragColor = vec4(0.993, 0.993, 0.993, 1 - (distToCircleCentre - circleSizeSqr) / 200);
|
||||
}
|
||||
else {
|
||||
gl_FragColor = vec4(0,0,0,1);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2057,7 +2057,7 @@
|
||||
},
|
||||
{
|
||||
"n": "MENU_LABEL_MORE",
|
||||
"s": "다른"
|
||||
"s": "더 보기"
|
||||
},
|
||||
{
|
||||
"n": "MENU_LABEL_MUSIC",
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
# Load Order
|
||||
# Modules are loaded from top to bottom.
|
||||
# Acceptable formats:
|
||||
# module_name,description_in_English_no_comma,(entry_point.kts),(external Jars sep'd by semicolon)...
|
||||
# If entry_point is not given, the program will try to run <modulename>.kts.
|
||||
# if even that does not exist, an the program will quit with error.
|
||||
# and yes, you can disable basegame, but we don't recommend.
|
||||
# You can disable basegame, but we don't recommend.
|
||||
|
||||
basegame
|
||||
dwarventech
|
||||
|
||||
|
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"MENU_LABEL_NEW_WORLD": "New World",
|
||||
"MENU_LABEL_DELETE_WORLD" : "Delete World",
|
||||
|
||||
"COPYRIGHT_ALL_RIGHTS_RESERVED": "All rights reserved",
|
||||
"COPYRIGHT_GNU_GPL_3": "Distributed under GNU GPL 3",
|
||||
|
||||
@@ -14,5 +14,7 @@
|
||||
"GAME_INVENTORY_BLOCKS" : "ブロック",
|
||||
"GAME_INVENTORY_WALLS" : "壁",
|
||||
"CONTEXT_ITEM_TOOL_PLURAL" : "道具",
|
||||
"GAME_INVENTORY_FAVORITES" : "登録"
|
||||
"GAME_INVENTORY_FAVORITES" : "お気に入り",
|
||||
|
||||
"GAME_INVENTORY_REGISTER" : "登録する"
|
||||
}
|
||||
@@ -14,5 +14,7 @@
|
||||
"GAME_INVENTORY_BLOCKS" : "블록",
|
||||
"GAME_INVENTORY_WALLS" : "벽지",
|
||||
"CONTEXT_ITEM_TOOL_PLURAL" : "도구",
|
||||
"GAME_INVENTORY_FAVORITES" : "등록"
|
||||
"GAME_INVENTORY_FAVORITES" : "즐겨찾기",
|
||||
|
||||
"GAME_INVENTORY_REGISTER" : "등록하기"
|
||||
}
|
||||
Reference in New Issue
Block a user