Merge pull request 'feature/populate-warcraft' (#27) from feature/populate-warcraft into dev

Reviewed-on: Athena/game-source#27
This commit is contained in:
darknight
2021-05-10 14:37:10 +02:00
38 changed files with 2090 additions and 541 deletions
+38
View File
@@ -0,0 +1,38 @@
[gd_resource type="ShaderMaterial" load_steps=3 format=2]
[sub_resource type="VisualShaderNodeColorConstant" id=1]
constant = Color( 0.117188, 0.0709553, 0.0709553, 1 )
[sub_resource type="VisualShader" id=2]
code = "shader_type spatial;
render_mode specular_schlick_ggx;
void vertex() {
// Output:0
}
void fragment() {
// Color:3
vec3 n_out3p0 = vec3(0.117188, 0.070955, 0.070955);
float n_out3p1 = 1.000000;
// Output:0
ALBEDO = n_out3p0;
}
void light() {
// Output:0
}
"
nodes/fragment/3/node = SubResource( 1 )
nodes/fragment/3/position = Vector2( 0, 140 )
nodes/fragment/connections = PoolIntArray( 3, 0, 0, 0 )
[resource]
shader = SubResource( 2 )
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -16,14 +16,14 @@ nodes/root_name="Scene Root"
nodes/root_scale=1.0
nodes/custom_script=""
nodes/storage=0
nodes/use_legacy_names=false
nodes/use_legacy_names=true
materials/location=1
materials/storage=1
materials/keep_on_reimport=true
meshes/compress=true
meshes/ensure_tangents=true
meshes/storage=0
meshes/light_baking=0
meshes/storage=1
meshes/light_baking=1
meshes/lightmap_texel_size=0.1
skins/use_named_skins=true
external_files/store_in_subdir=false
Binary file not shown.
+80
View File
@@ -0,0 +1,80 @@
[gd_resource type="VisualShader" load_steps=8 format=2]
[ext_resource path="res://assets/props/book/textures/tx_book_NM.tga" type="Texture" id=1]
[ext_resource path="res://assets/props/book/textures/tx_book_ORM.tga" type="Texture" id=2]
[ext_resource path="res://assets/props/book/textures/tx_book_BC.tga" type="Texture" id=3]
[sub_resource type="VisualShaderNodeTexture" id=1]
texture = ExtResource( 3 )
texture_type = 1
[sub_resource type="VisualShaderNodeTexture" id=2]
texture = ExtResource( 1 )
texture_type = 2
[sub_resource type="VisualShaderNodeTexture" id=3]
texture = ExtResource( 2 )
[sub_resource type="VisualShaderNodeVectorDecompose" id=4]
[resource]
code = "shader_type spatial;
render_mode specular_schlick_ggx;
uniform sampler2D tex_frg_2 : hint_albedo;
uniform sampler2D tex_frg_4;
uniform sampler2D tex_frg_3 : hint_normal;
void vertex() {
// Output:0
}
void fragment() {
// Texture:2
vec4 tex_frg_2_read = texture(tex_frg_2, UV.xy);
vec3 n_out2p0 = tex_frg_2_read.rgb;
float n_out2p1 = tex_frg_2_read.a;
// Texture:4
vec4 tex_frg_4_read = texture(tex_frg_4, UV.xy);
vec3 n_out4p0 = tex_frg_4_read.rgb;
float n_out4p1 = tex_frg_4_read.a;
// VectorDecompose:5
float n_out5p0 = n_out4p0.x;
float n_out5p1 = n_out4p0.y;
float n_out5p2 = n_out4p0.z;
// Texture:3
vec4 tex_frg_3_read = texture(tex_frg_3, UV.xy);
vec3 n_out3p0 = tex_frg_3_read.rgb;
float n_out3p1 = tex_frg_3_read.a;
// Output:0
ALBEDO = n_out2p0;
METALLIC = n_out5p2;
ROUGHNESS = n_out5p1;
AO = n_out5p0;
NORMAL = n_out3p0;
}
void light() {
// Output:0
}
"
graph_offset = Vector2( -180.394, -217.899 )
nodes/fragment/0/position = Vector2( 620, 200 )
nodes/fragment/2/node = SubResource( 1 )
nodes/fragment/2/position = Vector2( -240, -220 )
nodes/fragment/3/node = SubResource( 2 )
nodes/fragment/3/position = Vector2( -172.448, 762.213 )
nodes/fragment/4/node = SubResource( 3 )
nodes/fragment/4/position = Vector2( -440, 160 )
nodes/fragment/5/node = SubResource( 4 )
nodes/fragment/5/position = Vector2( 0, 300 )
nodes/fragment/connections = PoolIntArray( 2, 0, 0, 0, 3, 0, 0, 7, 4, 0, 5, 0, 5, 1, 0, 3, 5, 2, 0, 2, 5, 0, 0, 6 )
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 768 KiB

@@ -0,0 +1,37 @@
[remap]
importer="texture"
type="StreamTexture"
path.s3tc="res://.import/tx_book_BC.tga-043df0783ead34530de9f256a143cacb.s3tc.stex"
path.etc2="res://.import/tx_book_BC.tga-043df0783ead34530de9f256a143cacb.etc2.stex"
path.etc="res://.import/tx_book_BC.tga-043df0783ead34530de9f256a143cacb.etc.stex"
metadata={
"imported_formats": [ "s3tc", "etc2", "etc" ],
"vram_texture": true
}
[deps]
source_file="res://assets/props/book/textures/tx_book_BC.tga"
dest_files=[ "res://.import/tx_book_BC.tga-043df0783ead34530de9f256a143cacb.s3tc.stex", "res://.import/tx_book_BC.tga-043df0783ead34530de9f256a143cacb.etc2.stex", "res://.import/tx_book_BC.tga-043df0783ead34530de9f256a143cacb.etc.stex" ]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=true
flags/filter=true
flags/mipmaps=true
flags/anisotropic=false
flags/srgb=1
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
Binary file not shown.

After

Width:  |  Height:  |  Size: 768 KiB

@@ -0,0 +1,37 @@
[remap]
importer="texture"
type="StreamTexture"
path.s3tc="res://.import/tx_book_NM.tga-76afe8f7bcf6cb8cc6055b785f89befe.s3tc.stex"
path.etc2="res://.import/tx_book_NM.tga-76afe8f7bcf6cb8cc6055b785f89befe.etc2.stex"
path.etc="res://.import/tx_book_NM.tga-76afe8f7bcf6cb8cc6055b785f89befe.etc.stex"
metadata={
"imported_formats": [ "s3tc", "etc2", "etc" ],
"vram_texture": true
}
[deps]
source_file="res://assets/props/book/textures/tx_book_NM.tga"
dest_files=[ "res://.import/tx_book_NM.tga-76afe8f7bcf6cb8cc6055b785f89befe.s3tc.stex", "res://.import/tx_book_NM.tga-76afe8f7bcf6cb8cc6055b785f89befe.etc2.stex", "res://.import/tx_book_NM.tga-76afe8f7bcf6cb8cc6055b785f89befe.etc.stex" ]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=1
flags/repeat=true
flags/filter=true
flags/mipmaps=true
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
Binary file not shown.

After

Width:  |  Height:  |  Size: 768 KiB

@@ -0,0 +1,37 @@
[remap]
importer="texture"
type="StreamTexture"
path.s3tc="res://.import/tx_book_ORM.tga-314f28a993b713578d4773124db322ff.s3tc.stex"
path.etc2="res://.import/tx_book_ORM.tga-314f28a993b713578d4773124db322ff.etc2.stex"
path.etc="res://.import/tx_book_ORM.tga-314f28a993b713578d4773124db322ff.etc.stex"
metadata={
"imported_formats": [ "s3tc", "etc2", "etc" ],
"vram_texture": true
}
[deps]
source_file="res://assets/props/book/textures/tx_book_ORM.tga"
dest_files=[ "res://.import/tx_book_ORM.tga-314f28a993b713578d4773124db322ff.s3tc.stex", "res://.import/tx_book_ORM.tga-314f28a993b713578d4773124db322ff.etc2.stex", "res://.import/tx_book_ORM.tga-314f28a993b713578d4773124db322ff.etc.stex" ]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=true
flags/filter=true
flags/mipmaps=true
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
Binary file not shown.
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -16,18 +16,18 @@ nodes/root_name="Scene Root"
nodes/root_scale=1.0
nodes/custom_script=""
nodes/storage=0
nodes/use_legacy_names=false
nodes/use_legacy_names=true
materials/location=1
materials/storage=1
materials/keep_on_reimport=true
meshes/compress=true
meshes/ensure_tangents=true
meshes/storage=0
meshes/light_baking=0
meshes/storage=1
meshes/light_baking=1
meshes/lightmap_texel_size=0.1
skins/use_named_skins=true
external_files/store_in_subdir=false
animation/import=true
animation/import=false
animation/fps=15
animation/filter_script=""
animation/storage=false
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

@@ -0,0 +1,37 @@
[remap]
importer="texture"
type="StreamTexture"
path.s3tc="res://.import/tx_candle_BCS.tga-8a28bd77a964ef96f453c0c2c4de7ed9.s3tc.stex"
path.etc2="res://.import/tx_candle_BCS.tga-8a28bd77a964ef96f453c0c2c4de7ed9.etc2.stex"
path.etc="res://.import/tx_candle_BCS.tga-8a28bd77a964ef96f453c0c2c4de7ed9.etc.stex"
metadata={
"imported_formats": [ "s3tc", "etc2", "etc" ],
"vram_texture": true
}
[deps]
source_file="res://assets/props/candle/textures/tx_candle_BCS.tga"
dest_files=[ "res://.import/tx_candle_BCS.tga-8a28bd77a964ef96f453c0c2c4de7ed9.s3tc.stex", "res://.import/tx_candle_BCS.tga-8a28bd77a964ef96f453c0c2c4de7ed9.etc2.stex", "res://.import/tx_candle_BCS.tga-8a28bd77a964ef96f453c0c2c4de7ed9.etc.stex" ]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=true
flags/filter=true
flags/mipmaps=true
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
@@ -0,0 +1,37 @@
[remap]
importer="texture"
type="StreamTexture"
path.s3tc="res://.import/tx_candle_Bscatter.tga-bab49978d309dd8ee4ead06fb6b4cd6b.s3tc.stex"
path.etc2="res://.import/tx_candle_Bscatter.tga-bab49978d309dd8ee4ead06fb6b4cd6b.etc2.stex"
path.etc="res://.import/tx_candle_Bscatter.tga-bab49978d309dd8ee4ead06fb6b4cd6b.etc.stex"
metadata={
"imported_formats": [ "s3tc", "etc2", "etc" ],
"vram_texture": true
}
[deps]
source_file="res://assets/props/candle/textures/tx_candle_Bscatter.tga"
dest_files=[ "res://.import/tx_candle_Bscatter.tga-bab49978d309dd8ee4ead06fb6b4cd6b.s3tc.stex", "res://.import/tx_candle_Bscatter.tga-bab49978d309dd8ee4ead06fb6b4cd6b.etc2.stex", "res://.import/tx_candle_Bscatter.tga-bab49978d309dd8ee4ead06fb6b4cd6b.etc.stex" ]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=true
flags/filter=true
flags/mipmaps=true
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
Binary file not shown.

After

Width:  |  Height:  |  Size: 768 KiB

@@ -0,0 +1,37 @@
[remap]
importer="texture"
type="StreamTexture"
path.s3tc="res://.import/tx_candle_scatter.tga-bc0a35b3e6c5b6443faff3a90e4ee73d.s3tc.stex"
path.etc2="res://.import/tx_candle_scatter.tga-bc0a35b3e6c5b6443faff3a90e4ee73d.etc2.stex"
path.etc="res://.import/tx_candle_scatter.tga-bc0a35b3e6c5b6443faff3a90e4ee73d.etc.stex"
metadata={
"imported_formats": [ "s3tc", "etc2", "etc" ],
"vram_texture": true
}
[deps]
source_file="res://assets/props/candle/textures/tx_candle_scatter.tga"
dest_files=[ "res://.import/tx_candle_scatter.tga-bc0a35b3e6c5b6443faff3a90e4ee73d.s3tc.stex", "res://.import/tx_candle_scatter.tga-bc0a35b3e6c5b6443faff3a90e4ee73d.etc2.stex", "res://.import/tx_candle_scatter.tga-bc0a35b3e6c5b6443faff3a90e4ee73d.etc.stex" ]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=true
flags/filter=true
flags/mipmaps=true
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -16,14 +16,14 @@ nodes/root_name="Scene Root"
nodes/root_scale=1.0
nodes/custom_script=""
nodes/storage=0
nodes/use_legacy_names=false
nodes/use_legacy_names=true
materials/location=1
materials/storage=1
materials/keep_on_reimport=true
meshes/compress=true
meshes/ensure_tangents=true
meshes/storage=0
meshes/light_baking=0
meshes/storage=1
meshes/light_baking=1
meshes/lightmap_texel_size=0.1
skins/use_named_skins=true
external_files/store_in_subdir=false
Binary file not shown.
Binary file not shown.
+124
View File
@@ -0,0 +1,124 @@
{
"asset" : {
"generator" : "Khronos glTF Blender I/O v1.5.17",
"version" : "2.0"
},
"scene" : 0,
"scenes" : [
{
"name" : "Scene",
"nodes" : [
0
]
}
],
"nodes" : [
{
"mesh" : 0,
"name" : "plane"
}
],
"meshes" : [
{
"name" : "Plane.004",
"primitives" : [
{
"attributes" : {
"POSITION" : 0,
"NORMAL" : 1,
"TANGENT" : 2,
"TEXCOORD_0" : 3,
"TEXCOORD_1" : 4
},
"indices" : 5
}
]
}
],
"accessors" : [
{
"bufferView" : 0,
"componentType" : 5126,
"count" : 4,
"max" : [
0.30000001192092896,
0,
0.30000001192092896
],
"min" : [
-0.30000001192092896,
0,
-0.30000001192092896
],
"type" : "VEC3"
},
{
"bufferView" : 1,
"componentType" : 5126,
"count" : 4,
"type" : "VEC3"
},
{
"bufferView" : 2,
"componentType" : 5126,
"count" : 4,
"type" : "VEC4"
},
{
"bufferView" : 3,
"componentType" : 5126,
"count" : 4,
"type" : "VEC2"
},
{
"bufferView" : 4,
"componentType" : 5126,
"count" : 4,
"type" : "VEC2"
},
{
"bufferView" : 5,
"componentType" : 5123,
"count" : 6,
"type" : "SCALAR"
}
],
"bufferViews" : [
{
"buffer" : 0,
"byteLength" : 48,
"byteOffset" : 0
},
{
"buffer" : 0,
"byteLength" : 48,
"byteOffset" : 48
},
{
"buffer" : 0,
"byteLength" : 64,
"byteOffset" : 96
},
{
"buffer" : 0,
"byteLength" : 32,
"byteOffset" : 160
},
{
"buffer" : 0,
"byteLength" : 32,
"byteOffset" : 192
},
{
"buffer" : 0,
"byteLength" : 12,
"byteOffset" : 224
}
],
"buffers" : [
{
"byteLength" : 236,
"uri" : "data:application/octet-stream;base64,mpmZvgAAAACamZk+mpmZPgAAAACamZk+mpmZvgAAAACamZm+mpmZPgAAAACamZm+AAAAAAAAgD8AAACAAAAAAAAAgD8AAACAAAAAAAAAgD8AAACAAAAAAAAAgD8AAACA5sQqNAAAAAAAAIA/AACAP4/CqDIAAAAAAACAPwAAgD+PwqgyAAAAAAAAgD8AAIA/QpQAtAAAAAAAAIA/AACAP2lsfz9qbH8/aWx/PwCVEzuHmBM7aGx/P8+VEzsAlxM7aWx/P2psfz9pbH8/AJUTO4eYEztobH8/z5UTOwCXEzsAAAEAAwAAAAMAAgA="
}
]
}
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,24 @@
[remap]
importer="texture_array"
type="TextureArray"
path="res://.import/CheckLightmap.exr-a30cb7f4507712e4e8789c79b715eefb.texarr"
metadata={
"vram_texture": false
}
[deps]
source_file="res://developers/aurelien/CheckLightmap.exr"
dest_files=[ "res://.import/CheckLightmap.exr-a30cb7f4507712e4e8789c79b715eefb.texarr" ]
[params]
compress/mode=0
compress/no_bptc_if_rgb=false
flags/repeat=false
flags/filter=true
flags/mipmaps=false
flags/srgb=false
slices/horizontal=1
slices/vertical=1
+16
View File
@@ -0,0 +1,16 @@
extends Spatial
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
Binary file not shown.
+93
View File
@@ -0,0 +1,93 @@
[gd_scene load_steps=11 format=2]
[ext_resource path="res://assets/props/book/sm_book.mesh" type="ArrayMesh" id=1]
[ext_resource path="res://developers/aurelien/CheckLightmap.lmbake" type="BakedLightmapData" id=2]
[ext_resource path="res://developers/aurelien/CheckLightmap.gd" type="Script" id=3]
[ext_resource path="res://assets/props/misc/plane.mesh" type="ArrayMesh" id=4]
[ext_resource path="res://assets/props/candle/sm_candlestick.mesh" type="ArrayMesh" id=5]
[ext_resource path="res://assets/materials/gray.tres" type="Material" id=6]
[ext_resource path="res://assets/props/book/materials/MA_book.tres" type="Shader" id=7]
[sub_resource type="ShaderMaterial" id=1]
shader = ExtResource( 7 )
[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 7 )
[sub_resource type="ArrayMesh" id=3]
[node name="Spatial" type="Spatial"]
script = ExtResource( 3 )
[node name="BakedLightmap" type="BakedLightmap" parent="."]
extents = Vector3( 4, 4, 4 )
quality = 3
bounces = 6
environment_mode = 1
capture_quality = 2
light_data = ExtResource( 2 )
[node name="SpotLight" type="SpotLight" parent="."]
transform = Transform( 1, 0, 0, 0, 0.145807, 0.989313, 0, -0.989313, 0.145807, 0.563775, 2.12757, 0.864609 )
visible = false
light_energy = 10.0
light_indirect_energy = 4.0
light_bake_mode = 2
shadow_enabled = true
spot_angle = 32.1
[node name="SpotLight2" type="SpotLight" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.305956, 0.959701, -0.838667 )
visible = false
light_color = Color( 0.564706, 0.227451, 0.227451, 1 )
light_energy = 10.0
light_indirect_energy = 4.0
light_bake_mode = 2
shadow_enabled = true
spot_angle = 15.0
[node name="sm_book3" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.381911, 0.0414187, 1.03881 )
mesh = ExtResource( 1 )
material/0 = SubResource( 1 )
[node name="sm_book4" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.743055, 0.0414186, 1.03485 )
use_in_baked_light = true
mesh = ExtResource( 1 )
material/0 = SubResource( 2 )
[node name="sm_book" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0435888, 0.106022 )
use_in_baked_light = true
lightmap_scale = 1
mesh = ExtResource( 1 )
material/0 = null
[node name="MeshInstance" type="MeshInstance" parent="."]
use_in_baked_light = true
mesh = SubResource( 3 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( 0.089016, -0.715663, 0.692751, 0, 0.695512, 0.718515, -0.99603, -0.0639593, 0.0619116, 2.07081, 2.13639, 0.731596 )
[node name="sm_candlestick" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0622943, -0.000247162, -0.869008 )
use_in_baked_light = true
lightmap_scale = 1
mesh = ExtResource( 5 )
material/0 = null
[node name="sm_book2" type="MeshInstance" parent="."]
transform = Transform( 0.276862, 0, 0.96091, 0, 1, 0, -0.96091, 0, 0.276862, 0.186131, 0.0414188, -0.458372 )
use_in_baked_light = true
lightmap_scale = 1
mesh = ExtResource( 1 )
material/0 = null
[node name="plane" type="MeshInstance" parent="."]
transform = Transform( 5.17929, 0, 0, 0, 5.17929, 0, 0, 0, 8.20363, 0, 0, 0 )
use_in_baked_light = true
lightmap_scale = 2
mesh = ExtResource( 4 )
material/0 = ExtResource( 6 )
+3
View File
@@ -0,0 +1,3 @@
[gd_scene format=2]
[node name="Spatial" type="Spatial"]
+4 -1
View File
@@ -44,6 +44,9 @@ common/enable_pause_aware_picking=true
[rendering]
quality/driver/driver_name="GLES2"
quality/driver/fallback_to_gles2=true
vram_compression/import_etc=true
quality/shading/force_vertex_shading.mobile=false
quality/lightmapping/use_bicubic_sampling.mobile=true
quality/depth/hdr.mobile=true
environment/default_environment="res://default_env.tres"
+8
View File
@@ -3,3 +3,11 @@ extends Control
# Load scene warcraft
func _on_WarCraft_pressed():
Global.goto_scene("res://scenes/levels/WarCraft.tscn")
func _on_Lightmap_pressed():
Global.goto_scene("res://developers/aurelien/CheckLightmap.tscn")
func _on_Dagger_pressed():
Global.goto_scene("res://developers/jeremy/Dagger.tscn")
+34
View File
@@ -34,4 +34,38 @@ margin_bottom = 150.0
mouse_default_cursor_shape = 2
texture_normal = ExtResource( 2 )
[node name="Lightmap" type="TextureButton" parent="games/GridContainer"]
margin_top = 154.0
margin_right = 150.0
margin_bottom = 304.0
mouse_default_cursor_shape = 2
texture_normal = ExtResource( 2 )
[node name="Label" type="Label" parent="games/GridContainer/Lightmap"]
margin_right = 40.0
margin_bottom = 14.0
text = "Lightmap"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Dagger" type="TextureButton" parent="games/GridContainer"]
margin_top = 308.0
margin_right = 150.0
margin_bottom = 458.0
mouse_default_cursor_shape = 2
texture_normal = ExtResource( 2 )
[node name="Label" type="Label" parent="games/GridContainer/Dagger"]
margin_right = 44.0
margin_bottom = 14.0
text = "Dagger"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="games/GridContainer/WarCraft" to="." method="_on_WarCraft_pressed"]
[connection signal="pressed" from="games/GridContainer/Lightmap" to="." method="_on_Lightmap_pressed"]
[connection signal="pressed" from="games/GridContainer/Dagger" to="." method="_on_Dagger_pressed"]
+253 -42
View File
@@ -1,66 +1,277 @@
[gd_scene load_steps=9 format=2]
[gd_scene load_steps=21 format=2]
[ext_resource path="res://assets/props/rock floor/rock floor.gltf" type="PackedScene" id=1]
[ext_resource path="res://assets/props/table/table.gltf" type="PackedScene" id=2]
[ext_resource path="res://assets/props/stool b/stool b.gltf" type="PackedScene" id=3]
[ext_resource path="res://assets/hdri/tx_night_place.hdr" type="Texture" id=4]
[ext_resource path="res://assets/props/book/book.gltf" type="PackedScene" id=5]
[ext_resource path="res://scenes/levels/WarCraft.gd" type="Script" id=6]
[ext_resource path="res://assets/props/dagger/dagger.mesh" type="ArrayMesh" id=7]
[ext_resource path="res://assets/props/growler/growler.gltf" type="PackedScene" id=8]
[ext_resource path="res://assets/props/godet/godet.gltf" type="PackedScene" id=9]
[ext_resource path="res://assets/props/candle/candlestick.gltf" type="PackedScene" id=10]
[ext_resource path="res://assets/props/parchment/wood parchment.gltf" type="PackedScene" id=11]
[ext_resource path="res://assets/materials/gray.tres" type="Material" id=12]
[ext_resource path="res://assets/props/parchment/paper parchment.gltf" type="PackedScene" id=13]
[ext_resource path="res://assets/props/candle/candle top.gltf" type="PackedScene" id=14]
[ext_resource path="res://assets/props/candle/candle d.gltf" type="PackedScene" id=15]
[ext_resource path="res://assets/props/candle/candle b.gltf" type="PackedScene" id=16]
[ext_resource path="res://assets/props/book/sm_book.mesh" type="ArrayMesh" id=17]
[sub_resource type="PanoramaSky" id=1]
[sub_resource type="CubeMesh" id=1]
[sub_resource type="PanoramaSky" id=2]
panorama = ExtResource( 4 )
[sub_resource type="Environment" id=2]
[sub_resource type="Environment" id=3]
background_mode = 3
background_sky = SubResource( 1 )
ambient_light_color = Color( 0.266667, 0.14902, 0.0627451, 1 )
background_sky = SubResource( 2 )
background_color = Color( 0.188235, 0.133333, 0.133333, 1 )
background_energy = 0.6
ambient_light_color = Color( 0.694118, 0.168627, 0.67451, 1 )
ambient_light_energy = 1.55
ambient_light_sky_contribution = 0.5
fog_enabled = true
fog_color = Color( 0.562167, 0.29, 1, 0.941176 )
fog_depth_begin = 0.0
fog_depth_end = 60.0
fog_depth_curve = 1.10957
fog_height_enabled = true
fog_height_min = 2.0
fog_height_max = -20.0
fog_height_curve = 0.965936
tonemap_mode = 2
ss_reflections_enabled = true
dof_blur_far_enabled = true
dof_blur_far_distance = 2.0
glow_enabled = true
[sub_resource type="GIProbeData" id=4]
bounds = AABB( -10, -10, -10, 20, 20, 20 )
cell_size = 0.15625
to_cell_xform = Transform( 6.4, 0, 0, 0, 6.4, 0, 0, 0, 6.4, 64, 64, 64 )
dynamic_data = PoolIntArray( 0, 8, 128, 128, 128, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4132, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 8355711, 0 )
dynamic_range = 4
bias = 1.5
normal_bias = 0.0
propagation = 0.7
interior = true
[node name="Warcraft" type="Spatial"]
script = ExtResource( 6 )
[node name="rock floor" parent="." instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 2.253 )
[node name="Main Camera" type="Camera" parent="."]
transform = Transform( 0.160708, -0.339306, 0.926846, 0, 0.939052, 0.343774, -0.987002, -0.0552473, 0.150913, 1.62519, 1.61928, 0.658554 )
fov = 38.5632
far = 60.0
[node name="rock floor2" parent="." instance=ExtResource( 1 )]
[node name="Building" type="Spatial" parent="."]
[node name="MeshInstance" type="MeshInstance" parent="Building"]
transform = Transform( 5.45383, 0, 0, 0, 2.05553, 0, 0, 0, 0.347932, -3.44218, 1.54814, 5.15637 )
mesh = SubResource( 1 )
material/0 = ExtResource( 12 )
[node name="MeshInstance4" type="MeshInstance" parent="Building"]
transform = Transform( 5.45383, 0, 0, 0, -8.98502e-08, 0.347932, 0, -5.54994, -4.10632e-08, -3.44218, 3.54814, 0.156369 )
mesh = SubResource( 1 )
material/0 = ExtResource( 12 )
[node name="MeshInstance2" type="MeshInstance" parent="Building"]
transform = Transform( 5.45383, 0, 0, 0, 2.05553, 0, 0, 0, 0.347932, -3.44218, 1.54814, -4.11673 )
mesh = SubResource( 1 )
material/0 = ExtResource( 12 )
[node name="MeshInstance3" type="MeshInstance" parent="Building"]
transform = Transform( -2.38394e-07, 0, -0.347932, 0, 2.05553, 0, 5.45383, 0, -1.52086e-08, -8.4425, 1.54516, 0.872685 )
mesh = SubResource( 1 )
material/0 = ExtResource( 12 )
[node name="rock floor4" parent="Building" instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -7, 0, -3.747 )
[node name="rock floor2" parent="Building" instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -3.747 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( 0.160708, -0.339306, 0.926846, 0, 0.939052, 0.343774, -0.987002, -0.0552473, 0.150913, 1.62519, 1.61928, 0.658554 )
[node name="rock floor" parent="Building" instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 2.253 )
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 2 )
[node name="rock floor3" parent="Building" instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -7, 0, 2.253 )
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( -0.919434, 0.313904, -0.236865, 0.0166148, 0.632807, 0.774131, 0.392893, 0.707827, -0.58704, 0, 1.62188, 0 )
light_color = Color( 0.611765, 0.517647, 0.882353, 1 )
[node name="BG Table Right" parent="." instance=ExtResource( 2 )]
transform = Transform( 0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, 0.707107, -2.16251, 0.02855, -2.03036 )
[node name="growler" parent="BG Table Right" instance=ExtResource( 8 )]
transform = Transform( 0.428226, 0, -0.903672, 0, 1, 0, 0.903672, 0, 0.428226, 0.260769, 0.871669, 0.248644 )
[node name="godet" parent="BG Table Right" instance=ExtResource( 9 )]
transform = Transform( 0.869771, 0, 0.493456, 0, 1, 0, -0.493456, 0, 0.869771, 0.124298, 0.856545, -0.0234158 )
[node name="godet2" parent="BG Table Right" instance=ExtResource( 9 )]
transform = Transform( -0.236782, -0.0445638, 0.970541, -0.0267146, 0.998868, 0.039347, -0.971196, -0.0166109, -0.237705, 0.291462, 0.865107, 0.00160384 )
[node name="BG Table Left" parent="." instance=ExtResource( 2 )]
transform = Transform( -0.958482, 0, -0.285153, 0, 1, 0, 0.285153, 0, -0.958482, -2.78053, 0.0325576, 2.20978 )
[node name="growler" parent="BG Table Left" instance=ExtResource( 8 )]
transform = Transform( -0.958482, 0, 0.285153, 0, 1, 0, -0.285153, 0, -0.958482, 0, 0.862568, 0 )
[node name="godet" parent="BG Table Left" instance=ExtResource( 9 )]
transform = Transform( -0.958482, -0.0136413, 0.284827, 0, 0.998855, 0.0478387, -0.285153, 0.0458525, -0.957385, -0.0769448, 0.856716, -0.25378 )
[node name="godet2" parent="BG Table Left" instance=ExtResource( 9 )]
transform = Transform( -0.958482, 0.0116327, 0.284916, 0, 0.999168, -0.0407945, -0.285153, -0.0391008, -0.957684, -0.17328, 0.869693, 0.189056 )
[node name="Main Scene Props" type="Spatial" parent="."]
[node name="Book" type="MeshInstance" parent="Main Scene Props"]
transform = Transform( 0.259561, 0, 0.965727, 0.0582327, 0.99818, -0.0156514, -0.963969, 0.0602995, 0.259089, 0.13025, 0.92072, -0.458817 )
use_in_baked_light = true
mesh = ExtResource( 17 )
material/0 = null
[node name="Book" type="MeshInstance" parent="Main Scene Props/Book"]
transform = Transform( 0.0229641, -0.00339183, -0.999731, 0.0393653, 0.999223, -0.00248598, 0.998961, -0.0392976, 0.0230803, 0.00279957, 0.066205, -0.000443451 )
use_in_baked_light = true
mesh = ExtResource( 17 )
material/0 = null
[node name="Book2" type="MeshInstance" parent="Main Scene Props/Book/Book"]
transform = Transform( 0.86032, -0.0497817, -0.507318, 0.0471006, 0.998725, -0.0181282, 0.507573, -0.00829895, 0.861568, 0.00110056, 0.070618, -0.00503534 )
use_in_baked_light = true
mesh = ExtResource( 17 )
material/0 = null
[node name="candlestick" parent="Main Scene Props/Book/Book/Book2" instance=ExtResource( 10 )]
transform = Transform( 1.0543, -0.0109484, 1.03432, -0.0329634, 1.4758, 0.0492217, -1.03385, -0.0582193, 1.05321, 0.0299356, 0.0326172, -0.0690778 )
[node name="candle top" parent="Main Scene Props/Book/Book/Book2/candlestick" instance=ExtResource( 14 )]
transform = Transform( 1.16981, 0, 0, 0, 1.63542, 0, 0, 0, 1.16981, 0, 0.125719, 0 )
[node name="OmniLight" type="OmniLight" parent="Main Scene Props/Book/Book/Book2/candlestick/candle top"]
transform = Transform( 0.578774, 2.62765e-08, 7.00709e-08, -1.41016e-14, 0.413994, -1.0233e-07, -1.13687e-13, 1.06581e-14, 0.578773, 0, 0.0874847, 0 )
light_color = Color( 0.960784, 0.611765, 0.00784314, 1 )
light_energy = 2.0
omni_range = 0.6
[node name="table" parent="Main Scene Props" instance=ExtResource( 2 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.082685, 0.0325576, 0.290515 )
[node name="dagger" type="MeshInstance" parent="Main Scene Props"]
transform = Transform( -0.242904, -0.97005, -4.24022e-08, 0, -4.37114e-08, 1, -0.97005, 0.242904, 1.06177e-08, 0.441892, 0.938817, 0.531178 )
mesh = ExtResource( 7 )
material/0 = null
[node name="stool b" parent="Main Scene Props" instance=ExtResource( 3 )]
transform = Transform( -0.232037, 0, -0.972707, 0, 1, 0, 0.972707, 0, -0.232037, -2.91873, 0.0130518, 0.702275 )
[node name="stool b5" parent="Main Scene Props" instance=ExtResource( 3 )]
transform = Transform( 0.770013, 0, -0.638029, 0, 1, 0, 0.638029, 0, 0.770013, -4.33166, 0.013052, 1.08363 )
[node name="stool b4" parent="Main Scene Props" instance=ExtResource( 3 )]
transform = Transform( 0.656257, 0, 0.754538, 0, 1, 0, -0.754538, 0, 0.656257, -0.888955, 0.0130518, 1.64328 )
[node name="stool b2" parent="Main Scene Props" instance=ExtResource( 3 )]
transform = Transform( 0.892389, 0, -0.451267, 0, 1, 0, 0.451267, 0, 0.892389, 1.35966, 0.013052, 1.23435 )
[node name="stool b3" parent="Main Scene Props" instance=ExtResource( 3 )]
transform = Transform( 0.839193, 0, 0.543834, 0, 1, 0, -0.543834, 0, 0.839193, 0.474083, 0.013052, -1.39025 )
[node name="Book3" type="MeshInstance" parent="Main Scene Props"]
transform = Transform( 0.5, 0, 0.866025, 0, 1, 0, -0.866025, 0, 0.5, 0.0106606, 0.961322, 0.981535 )
use_in_baked_light = true
mesh = ExtResource( 17 )
material/0 = null
[node name="Book" type="MeshInstance" parent="Main Scene Props/Book3"]
transform = Transform( 0.992026, 0, 0.592682, 0, 1.15559, 0, -0.592682, 0, 0.992026, -0.000832438, 0.0791223, -0.012241 )
use_in_baked_light = true
mesh = ExtResource( 17 )
material/0 = null
[node name="Book2" type="MeshInstance" parent="Main Scene Props"]
transform = Transform( 0.122577, 0.0288089, -0.992041, -0.0361233, 0.999045, 0.0245489, 0.991801, 0.0328267, 0.1235, 0.493033, 0.936805, -0.0856308 )
use_in_baked_light = true
mesh = ExtResource( 17 )
material/0 = null
[node name="godet" parent="Main Scene Props" instance=ExtResource( 9 )]
transform = Transform( 0.706057, 0, -0.708155, 0, 1, 0, 0.708155, 0, 0.706057, -0.112722, 0.901657, 0.00149509 )
[node name="godet4" parent="Main Scene Props" instance=ExtResource( 9 )]
transform = Transform( 0.757895, 0, 0.652376, 0, 1, 0, -0.652376, 0, 0.757895, -0.28474, 0.905096, 0.78228 )
[node name="godet5" parent="Main Scene Props" instance=ExtResource( 9 )]
transform = Transform( 0.886172, -0.463214, 0.0114893, -0.0309068, -0.0343508, 0.998932, -0.462324, -0.885581, -0.0447572, -0.0863596, 0.96815, 0.743407 )
[node name="godet2" parent="Main Scene Props" instance=ExtResource( 9 )]
transform = Transform( 0.690251, 0, 0.72357, 0, 1, 0, -0.72357, 0, 0.690251, -0.333186, 0.901657, 0.177792 )
[node name="godet3" parent="Main Scene Props" instance=ExtResource( 9 )]
transform = Transform( 0.875311, 0.480987, 0.0498184, 0.0206958, 0.0656668, -0.997627, -0.483117, 0.874265, 0.0475244, -0.191043, 0.95253, 0.11484 )
[node name="growler" parent="Main Scene Props" instance=ExtResource( 8 )]
transform = Transform( 0.0876426, 0, -0.996152, 0, 1, 0, 0.996152, 0, 0.0876426, -0.316595, 0.905106, -0.0726386 )
[node name="wood parchment" parent="Main Scene Props" instance=ExtResource( 11 )]
transform = Transform( 0.796076, 0.00917861, -0.605127, 0, 0.999885, 0.0151663, 0.605197, -0.0120736, 0.795984, 0.543255, 0.957499, 0.755328 )
[node name="paper parchment" parent="Main Scene Props/wood parchment" instance=ExtResource( 13 )]
transform = Transform( 1, 6.51926e-09, -5.06639e-07, -4.65661e-09, 1, 9.31323e-09, 2.98023e-08, 8.3819e-09, 1, -0.262178, -0.0549548, -2.98023e-08 )
[node name="wood parchment2" parent="Main Scene Props" instance=ExtResource( 11 )]
transform = Transform( -0.596381, 0.0184557, 0.802489, 0.0225364, 0.999726, -0.00624354, -0.802385, 0.0143617, -0.596634, 0.281044, 0.958449, -0.253034 )
[node name="candle d" parent="Main Scene Props" instance=ExtResource( 15 )]
transform = Transform( -0.927966, 1.10978e-07, -0.372664, 6.91459e-08, 1, 1.25617e-07, 0.372664, 9.08001e-08, -0.927966, 0.462657, 0.976621, -0.0446488 )
[node name="candle top" parent="Main Scene Props" instance=ExtResource( 14 )]
transform = Transform( 2.94906, 0, 0, 0, 2.85, 0, 0, 0, 2.94906, 0.347704, 0.927664, 1.16015 )
[node name="candle b" parent="Main Scene Props/candle top" instance=ExtResource( 16 )]
transform = Transform( 0.4, 0, 0, 0, 0.4, 0, 0, 0, 0.4, 0.0300155, -0.00244898, 0.0152032 )
[node name="Lighting" type="Spatial" parent="."]
[node name="Red Color Left" type="SpotLight" parent="Lighting"]
transform = Transform( 0.885702, -0.222818, 0.407289, 0, 0.877297, 0.479948, -0.464255, -0.425091, 0.777023, 0.848516, 1.5034, 2.26553 )
light_color = Color( 1, 0, 0.0862745, 1 )
light_energy = 2.0
shadow_enabled = true
shadow_contact = 1.0
[node name="Blue Color Right" type="SpotLight" parent="Lighting"]
transform = Transform( -0.728997, 0.597286, -0.334384, 0.0537007, 0.536893, 0.84194, 0.682407, 0.595815, -0.423468, -0.540161, 1.80711, -0.561909 )
light_color = Color( 0.8, 0.835294, 1, 1 )
[node name="Blue Color Right2" type="SpotLight" parent="Lighting"]
transform = Transform( -0.721569, 0.418156, -0.5518, -0.680158, -0.577006, 0.452161, -0.129319, 0.701576, 0.700762, -6.73766, 1.80711, 4.06785 )
light_color = Color( 0.905882, 0.862745, 0.72549, 1 )
light_specular = 0.23
spot_range = 8.1
spot_angle = 55.8
[node name="Blue Color Right3" type="SpotLight" parent="Lighting"]
transform = Transform( 0.0552331, -0.60583, -0.793675, -0.717326, -0.577006, 0.390522, -0.694545, 0.547754, -0.466447, -6.73826, 1.80435, -3.64354 )
light_color = Color( 0.905882, 0.862745, 0.72549, 1 )
light_specular = 0.64
spot_range = 8.1
spot_angle = 55.8
[node name="Sun" type="DirectionalLight" parent="Lighting"]
transform = Transform( -0.777664, -0.348191, 0.523451, 0.0166148, 0.820946, 0.570764, -0.62846, 0.45256, -0.632636, 0, 1.62188, 0 )
light_color = Color( 0.501961, 0.67451, 1, 1 )
light_energy = 2.0
shadow_enabled = true
shadow_contact = 0.3
[node name="Props Table" type="Spatial" parent="."]
[node name="WorldEnvironment" type="WorldEnvironment" parent="Lighting"]
environment = SubResource( 3 )
[node name="book3" parent="Props Table" instance=ExtResource( 5 )]
transform = Transform( 0.259561, 0, 0.965727, 0.03751, 0.999245, -0.0100817, -0.964998, 0.0388413, 0.259365, 0.18091, 0.89617, -0.217671 )
[node name="GIProbe" type="GIProbe" parent="Lighting"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0, 0 )
interior = true
data = SubResource( 4 )
[node name="book4" parent="Props Table" instance=ExtResource( 5 )]
transform = Transform( 0.970684, -0.0388311, -0.237202, 0.0301257, 0.998737, -0.0402167, 0.238464, 0.0318918, 0.970628, 0.18091, 0.97011, -0.217671 )
[node name="book5" parent="Props Table" instance=ExtResource( 5 )]
transform = Transform( 0.712873, -0.0851354, -0.696107, 0.03751, 0.995812, -0.0833766, 0.70029, 0.0333259, 0.71308, 0.180416, 1.04419, -0.217477 )
[node name="table" parent="Props Table" instance=ExtResource( 2 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.082685, 0.0325576, 0.290515 )
[node name="stool b" parent="Props Table" instance=ExtResource( 3 )]
transform = Transform( 0.656257, 0, 0.754538, 0, 1, 0, -0.754538, 0, 0.656257, -0.888955, 0.0130518, 1.64328 )
[node name="stool b2" parent="Props Table" instance=ExtResource( 3 )]
transform = Transform( 0.892389, 0, -0.451267, 0, 1, 0, 0.451267, 0, 0.892389, 1.35966, 0.013052, 1.23435 )
[node name="stool b3" parent="Props Table" instance=ExtResource( 3 )]
transform = Transform( 0.839193, 0, 0.543834, 0, 1, 0, -0.543834, 0, 0.839193, 0.474083, 0.013052, -1.39025 )
[node name="book" parent="Props Table" instance=ExtResource( 5 )]
transform = Transform( 0.5, 0, 0.866025, 0, 1, 0, -0.866025, 0, 0.5, 0, 0.923053, 1 )
[node name="book2" parent="Props Table" instance=ExtResource( 5 )]
transform = Transform( -0.017264, 0, 1.15546, 0, 1.15559, 0, -1.15546, 0, -0.017264, 0, 0.998191, 1 )
[node name="BakedLightmap" type="BakedLightmap" parent="Lighting"]
environment_mode = 1