73 lines
2.4 KiB
Plaintext
73 lines
2.4 KiB
Plaintext
[gd_scene load_steps=16 format=2]
|
|
|
|
[ext_resource path="res://bunker.obj" type="ArrayMesh" id=1]
|
|
[ext_resource path="res://textures/kobolds/25.png" type="Texture" id=2]
|
|
[ext_resource path="res://textures/kobolds/24.png" type="Texture" id=3]
|
|
[ext_resource path="res://koboldspawner.gd" type="Script" id=4]
|
|
[ext_resource path="res://textures/bunkerlightmap.png" type="Texture" id=5]
|
|
[ext_resource path="res://textures/bunkerinteriorlightmap2.png" type="Texture" id=6]
|
|
[ext_resource path="res://textures/bunkerinteriorlightmap4.png" type="Texture" id=7]
|
|
[ext_resource path="res://textures/bunkerinteriorlightmap1.png" type="Texture" id=8]
|
|
[ext_resource path="res://textures/bunkerinteriorlightmap3.png" type="Texture" id=9]
|
|
[ext_resource path="res://lights.gd" type="Script" id=10]
|
|
[ext_resource path="res://fakelight.gd" type="Script" id=11]
|
|
|
|
[sub_resource type="SpatialMaterial" id=2]
|
|
flags_unshaded = true
|
|
albedo_texture = ExtResource( 5 )
|
|
|
|
[sub_resource type="Shader" id=3]
|
|
code = "shader_type spatial;
|
|
render_mode unshaded;
|
|
|
|
uniform sampler2D map1;
|
|
uniform sampler2D map2;
|
|
uniform sampler2D map3;
|
|
uniform sampler2D map4;
|
|
|
|
uniform vec3 col1;
|
|
uniform vec3 col2;
|
|
uniform vec3 col3;
|
|
uniform vec3 col4;
|
|
|
|
void fragment() {
|
|
ALBEDO = texture(map1,UV).rgb*col1+texture(map2,UV).rgb*col2+texture(map3,UV).rgb*col3+texture(map4,UV).rgb*col4;
|
|
}"
|
|
|
|
[sub_resource type="ShaderMaterial" id=4]
|
|
shader = SubResource( 3 )
|
|
shader_param/col1 = Vector3( 1, 0, 0 )
|
|
shader_param/col2 = Vector3( 0, 1, 0 )
|
|
shader_param/col3 = Vector3( 0, 0, 1 )
|
|
shader_param/col4 = Vector3( 1, 0.5, 0 )
|
|
shader_param/map1 = ExtResource( 8 )
|
|
shader_param/map2 = ExtResource( 6 )
|
|
shader_param/map3 = ExtResource( 9 )
|
|
shader_param/map4 = ExtResource( 7 )
|
|
|
|
[sub_resource type="AnimatedTexture" id=1]
|
|
flags = 6
|
|
frames = 2
|
|
frame_0/texture = ExtResource( 3 )
|
|
frame_1/texture = ExtResource( 2 )
|
|
frame_1/delay_sec = 0.0
|
|
|
|
[node name="Bunker" type="Spatial"]
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="."]
|
|
mesh = ExtResource( 1 )
|
|
skeleton = NodePath("../..")
|
|
material/0 = SubResource( 2 )
|
|
material/1 = SubResource( 4 )
|
|
script = ExtResource( 10 )
|
|
|
|
[node name="dynamo" type="Sprite3D" parent="MeshInstance"]
|
|
transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 10.9512, -5.97372, -5.03249 )
|
|
pixel_size = 0.0027
|
|
texture = SubResource( 1 )
|
|
script = ExtResource( 11 )
|
|
|
|
[node name="kobolds" type="Spatial" parent="MeshInstance"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 7.5, -6.63594, -5 )
|
|
script = ExtResource( 4 )
|