Коммит 36a5679d создал по автору magcourier's avatar magcourier
Просмотр файлов

Лазер на корабль

владелец 3ec63ed7
[gd_scene load_steps=2 format=2] [gd_scene load_steps=2 format=2]
[ext_resource path="res://resursoj/ast 6.dae" type="PackedScene" id=1] [ext_resource path="res://blokoj/asteroidoj/resursoj/ast 6.dae" type="PackedScene" id=1]
[node name="ast 6" instance=ExtResource( 1 )] [node name="ast 6" instance=ExtResource( 1 )]
transform = Transform( 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0 )
[node name="ast 6_cell049" parent="." index="0"] [node name="ast 6_cell049" parent="." index="0"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.236695, 1.73682, -1.68406 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.236695, 1.73682, -1.68406 )
......
...@@ -173,16 +173,17 @@ __meta__ = { ...@@ -173,16 +173,17 @@ __meta__ = {
wait_time = 10.0 wait_time = 10.0
[node name="ui" type="Control" parent="."] [node name="ui" type="Control" parent="."]
margin_right = 1076.0 anchor_right = 1.0
margin_bottom = 696.0 anchor_bottom = 1.0
script = ExtResource( 6 ) script = ExtResource( 6 )
__meta__ = { __meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false "_edit_use_anchors_": false
} }
[node name="loading" type="ColorRect" parent="ui"] [node name="loading" type="ColorRect" parent="ui"]
margin_right = 1021.0 anchor_right = 1.0
margin_bottom = 599.0 anchor_bottom = 1.0
color = Color( 0, 0, 0, 0 ) color = Color( 0, 0, 0, 0 )
__meta__ = { __meta__ = {
"_edit_use_anchors_": false "_edit_use_anchors_": false
......
...@@ -11,7 +11,7 @@ export (int, 0, 360) var yaw_limit = 360 ...@@ -11,7 +11,7 @@ export (int, 0, 360) var yaw_limit = 360
export (int, 0, 360) var pitch_limit = 360 export (int, 0, 360) var pitch_limit = 360
# Pivot Settings # Pivot Settings
export(NodePath) var privot setget set_privot export(NodePath) var privot setget set_privot # true - камера следит за кораблём
export var rotate_privot = false export var rotate_privot = false
var distance =25.0 var distance =25.0
var distance_smooth var distance_smooth
......
...@@ -136,30 +136,80 @@ const ship_gem = preload("res://blokoj/kosmo/scenoj/ship.tscn") ...@@ -136,30 +136,80 @@ const ship_gem = preload("res://blokoj/kosmo/scenoj/ship.tscn")
const base_ship = preload("res://blokoj/kosmosxipoj/scenoj/base_ship.tscn") const base_ship = preload("res://blokoj/kosmosxipoj/scenoj/base_ship.tscn")
const base_cabine = preload("res://blokoj/kosmosxipoj/scenoj/moduloj/cabine.tscn") const base_cabine = preload("res://blokoj/kosmosxipoj/scenoj/moduloj/cabine.tscn")
const base_engines = preload("res://blokoj/kosmosxipoj/scenoj/moduloj/engines.tscn") const base_engine = preload("res://blokoj/kosmosxipoj/scenoj/moduloj/engine.tscn")
const base_cargo = preload("res://blokoj/kosmosxipoj/scenoj/moduloj/cargo.tscn") const base_cargo = preload("res://blokoj/kosmosxipoj/scenoj/moduloj/cargo.tscn")
const laser = preload("res://blokoj/kosmosxipoj/scenoj/moduloj/laser.tscn")
const espero = preload("res://blokoj/kosmostacioj/espero/espero_ekster.tscn") const espero = preload("res://blokoj/kosmostacioj/espero/espero_ekster.tscn")
const asteroido = preload("res://blokoj/asteroidoj/ast 6.tscn")
# функция создания корабля # функция создания корабля
func create_ship(objecto): func create_ship(objecto):
var ship = null var ship = null
var cabine = null var cabine = null
var cargo = null var cargo = null
var engines = null var engine = null
var moduloj = null
if (objecto['resurso']['objId'] == 3):# это корабль "Vostok U2" "Базовый космический корабль" if (objecto['resurso']['objId'] == 3):# это корабль "Vostok U2" "Базовый космический корабль"
ship = base_ship.instance() ship = base_ship.instance()
engines = base_engines.instance()
ship.get_node("CollisionShape").add_child(engines) var enganes = false # временно - указывает, чтоодин двигатель уже ставили
for modulo in objecto['resurso']['ligilo']['edges']: # первый цикл добавляет все модули к кораблю
if modulo['node']['ligilo']['objId'] == 4: #"Vostok Модуль Кабины" "Базовый модуль кабины кораблей Vostok" var max_konektilo = 0 # максимальный номер комплектующей
cabine = base_cabine.instance() var tek_konektilo = 1 # текущий номер устанавливаемой в пространстве комплектующей
ship.get_node("CollisionShape").add_child(cabine) # на сколько сдвигать по осям
if modulo['node']['ligilo']['objId'] == 5: #"Vostok Грузовой Модуль" "Базовый грузовой модуль кораблей Vostok" var konektilo_x = 0
cargo = base_cargo.instance() var konektilo_y = 0
ship.get_node("CollisionShape").add_child(cargo) var konektilo_z = 0
for modulo in objecto['ligilo']['edges']:
if max_konektilo<modulo['node']['konektiloPosedanto']:
max_konektilo = modulo['node']['konektiloPosedanto']
if modulo['node']['tipo']['objId'] == 1: # связь типа 1 - модуль корабля
if modulo['node']['ligilo']['resurso']['objId'] == 4: #"Vostok Модуль Кабины" "Базовый модуль кабины кораблей Vostok"
cabine = base_cabine.instance()
cabine.uuid = modulo['node']['ligilo']['uuid']
# x - в право
cabine.get_node("cabine").translation.y = 2 #вверх
cabine.get_node("cabine").translation.z = 2 # назад
cabine.get_node("cabine").rotate_y(deg2rad(90))
ship.get_node("CollisionShape").add_child(cabine)
elif modulo['node']['ligilo']['resurso']['objId'] == 5: #"Vostok Грузовой Модуль" "Базовый грузовой модуль кораблей Vostok"
cargo = base_cargo.instance()
cargo.uuid = modulo['node']['ligilo']['uuid']
cargo.get_node("Cargo").translation.y = 2
cargo.get_node("Cargo").translation.z = 8
cargo.get_node("Cargo").rotate_y(deg2rad(90))
ship.get_node("CollisionShape").add_child(cargo)
elif modulo['node']['ligilo']['resurso']['objId'] == 6: #"Vostok Двигатель" "Базовый двигатель кораблей Vostok"
engine = base_engine.instance()
engine.uuid = modulo['node']['ligilo']['uuid']
if enganes:
engine.get_node("engine R").translation.x = -2.5
engine.get_node("engine R").translation.y = 1
engine.get_node("engine R").translation.z = 10
engine.get_node("engine R").rotate_y(deg2rad(270))
engine.get_node("engine R").rotate_x(deg2rad(180))
else:
engine.get_node("engine R").translation.x = 2.5
engine.get_node("engine R").translation.y = 1
engine.get_node("engine R").translation.z = 10
engine.get_node("engine R").rotate_y(deg2rad(90))
ship.get_node("CollisionShape").add_child(engine)
enganes = !enganes
elif modulo['node']['ligilo']['resurso']['objId'] == 11: #Универсальный лазер
moduloj = laser.instance()
moduloj.uuid = modulo['node']['ligilo']['uuid']
moduloj.get_node("gun_body").translation.y = 4.2
moduloj.get_node("gun_body").translation.z = 0.6
moduloj.get_node("laser/gun_stem").translation.y = 4.2
moduloj.get_node("laser/gun_stem").translation.z = -0.4
moduloj.get_node("laser/beam/MeshInstance").translation.y = 4.2
moduloj.get_node("laser/beam/MeshInstance2").translation.y = 4.2
ship.get_node("CollisionShape").add_child(moduloj)
# for modulo in objecto['ligilo']['edges']:
if not ship: # проверка, если такого корабля нет в программе if not ship: # проверка, если такого корабля нет в программе
return ship return null
ship.translation=Vector3(objecto['koordinatoX'], ship.translation=Vector3(objecto['koordinatoX'],
objecto['koordinatoY'], objecto['koordinatoZ']) objecto['koordinatoY'], objecto['koordinatoZ'])
if objecto['rotaciaX']: if objecto['rotaciaX']:
...@@ -232,7 +282,7 @@ func _on_space_load_objektoj(): ...@@ -232,7 +282,7 @@ func _on_space_load_objektoj():
$"b_itinero/itinero/canvas/MarginContainer/VBoxContainer/HBoxContainer/itinero_clear".disabled=false $"b_itinero/itinero/canvas/MarginContainer/VBoxContainer/HBoxContainer/itinero_clear".disabled=false
else: else:
$ship.projekto_uuid='' $ship.projekto_uuid=''
# создаём остальные объекты в космосе # создаём остальные объекты в космосе
for item in Global.objektoj: for item in Global.objektoj:
if item['resurso']['objId'] == 1:#объект станция Espero if item['resurso']['objId'] == 1:#объект станция Espero
...@@ -242,17 +292,24 @@ func _on_space_load_objektoj(): ...@@ -242,17 +292,24 @@ func _on_space_load_objektoj():
add_child(state) add_child(state)
state.add_to_group('state') state.add_to_group('state')
state.add_to_group('create') state.add_to_group('create')
if (item['resurso']['tipo']['objId'] == 2)and(item['koordinatoX']):# тип - корабль elif (item['resurso']['tipo']['objId'] == 2)and(item['koordinatoX']):# тип - корабль
if (item['koordinatoX']): var s = ships.instance()
var s = ships.instance() s.translation=Vector3(item['koordinatoX'],
s.translation=Vector3(item['koordinatoX'], item['koordinatoY'], item['koordinatoZ'])
item['koordinatoY'], item['koordinatoZ']) s.rotation=Vector3(item['rotaciaX'],
s.rotation=Vector3(item['rotaciaX'], item['rotaciaY'], item['rotaciaZ'])
item['rotaciaY'], item['rotaciaZ']) add_child(s)
add_child(s) s.add_to_group('create')
s.add_to_group('create') s.add_to_group('enemies')
s.add_to_group('enemies') elif (item['resurso']['objId'] == 7)and(item['koordinatoX']):# тип - астероид
var ast = asteroido.instance()
ast.translation=Vector3(item['koordinatoX'],
item['koordinatoY'], item['koordinatoZ'])
ast.rotation=Vector3(item['rotaciaX'],
item['rotaciaY'], item['rotaciaZ'])
add_child(ast)
ast.add_to_group('create')
ast.add_to_group('asteroidoj')
pass # Replace with function body. pass # Replace with function body.
......
[gd_scene load_steps=8 format=2] [gd_scene load_steps=9 format=2]
[ext_resource path="res://blokoj/kosmostacioj/resursoj/CapKosmostacio/Kosmostacio.tscn" type="PackedScene" id=1] [ext_resource path="res://blokoj/kosmostacioj/resursoj/CapKosmostacio/Kosmostacio.tscn" type="PackedScene" id=1]
[ext_resource path="res://blokoj/kosmostacioj/resursoj/CapKosmostacio/forcefield/forcefield.tscn" type="PackedScene" id=2] [ext_resource path="res://blokoj/kosmostacioj/resursoj/CapKosmostacio/forcefield/forcefield.tscn" type="PackedScene" id=2]
[ext_resource path="res://blokoj/kosmostacioj/resursoj/CapKosmostacio/OmniLight.tscn" type="PackedScene" id=3] [ext_resource path="res://blokoj/kosmostacioj/resursoj/CapKosmostacio/OmniLight.tscn" type="PackedScene" id=3]
[ext_resource path="res://blokoj/kosmostacioj/resursoj/CapKosmostacio/textures/Stars Sphere.jpg" type="Texture" id=4] [ext_resource path="res://blokoj/kosmostacioj/resursoj/CapKosmostacio/textures/Stars Sphere.jpg" type="Texture" id=4]
[ext_resource path="res://blokoj/kosmostacioj/skriptoj/Camera.gd" type="Script" id=5]
[ext_resource path="res://blokoj/kosmostacioj/skriptoj/CapKosmostacio.gd" type="Script" id=6] [ext_resource path="res://blokoj/kosmostacioj/skriptoj/CapKosmostacio.gd" type="Script" id=6]
[sub_resource type="PanoramaSky" id=1] [sub_resource type="PanoramaSky" id=1]
...@@ -40,7 +41,8 @@ __meta__ = { ...@@ -40,7 +41,8 @@ __meta__ = {
"_edit_use_anchors_": false "_edit_use_anchors_": false
} }
[node name="Camera" type="Camera" parent="."] [node name="camera" type="Camera" parent="."]
transform = Transform( 0.237857, 0.17339, -0.955699, -0.0418764, 0.984853, 0.168257, 0.970397, 0, 0.241515, 0, 7.27922, -0.253852 ) transform = Transform( 0.0854123, 0.140573, -0.986379, -0.0121271, 0.99007, 0.140049, 0.996272, 9.34807e-10, 0.0862689, -0.956009, 5.66859, 0 )
script = ExtResource( 5 )
[connection signal="ready" from="." to="." method="_on_CapKosmostacio_ready"] [connection signal="ready" from="." to="." method="_on_CapKosmostacio_ready"]
[connection signal="pressed" from="kosmo" to="." method="_on_kosmo_pressed"] [connection signal="pressed" from="kosmo" to="." method="_on_kosmo_pressed"]
extends Camera
var observoj #объект наблюдения
var _mouse_offset = Vector2()
var sensitivity = 0.5
var smoothness = 0.5
var _yaw = 0.0
var _pitch = 0.0
var distance =25.0
var distance_smooth =25.0
func _process(delta):
distance_smooth =lerp(distance_smooth,distance,0.1)
set_translation(observoj.get_translation())
translate_object_local(Vector3(0.0, 0.0, distance_smooth))
var offset = Vector2();
offset += _mouse_offset * sensitivity
_mouse_offset = Vector2()
_yaw = _yaw * smoothness + offset.x * (1.0 - smoothness)
_pitch = _pitch * smoothness + offset.y * (1.0 - smoothness)
rotate_y(deg2rad(-_yaw))
rotate_object_local(Vector3(1,0,0), deg2rad(-_pitch))
pass
func doni_observoj(observo):
observoj = observo
func _input(event):
if Input.get_action_strength("right_click"):
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
if event is InputEventMouseMotion:
_mouse_offset = event.relative
else:
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
...@@ -24,7 +24,7 @@ func _on_kosmo_pressed(): ...@@ -24,7 +24,7 @@ func _on_kosmo_pressed():
Global.direktebla_objekto[Global.realeco-2]['rotaciaX'] = 0 Global.direktebla_objekto[Global.realeco-2]['rotaciaX'] = 0
Global.direktebla_objekto[Global.realeco-2]['rotaciaY'] = 0 Global.direktebla_objekto[Global.realeco-2]['rotaciaY'] = 0
Global.direktebla_objekto[Global.realeco-2]['rotaciaZ'] = 0 Global.direktebla_objekto[Global.realeco-2]['rotaciaZ'] = 0
Global.direktebla_objekto[Global.realeco-2]['kosmo'] = true Global.direktebla_objekto[Global.realeco-2]['kosmo'] = true
# Разрегистрируем обработчик сигнала request_completed (вызывается # Разрегистрируем обработчик сигнала request_completed (вызывается
# по завершении HTTPRequest) # по завершении HTTPRequest)
...@@ -72,6 +72,7 @@ func _on_CapKosmostacio_ready(): ...@@ -72,6 +72,7 @@ func _on_CapKosmostacio_ready():
ship.translation.z = ship.translation.z - 5 # в сторону от центра ship.translation.z = ship.translation.z - 5 # в сторону от центра
ship.translation.y = ship.translation.y - 3 # высота от пола ship.translation.y = ship.translation.y - 3 # высота от пола
add_child(ship,true) add_child(ship,true)
$camera.doni_observoj(ship)
......
...@@ -6,41 +6,6 @@ extends Node ...@@ -6,41 +6,6 @@ extends Node
const URL = "https://t34.tehnokom.su/api/v1.1/" const URL = "https://t34.tehnokom.su/api/v1.1/"
# Запрос к API,
func objecto_query(statusoId, kategorioId, tipoId, kuboId = 1):
return JSON.print({ "query": "query ($kuboId:Float, $statusoId:Float, "+
" $realecoId:Float, $kategorioId:Float, $tipoId:Float) " +
"{ universoObjekto (realeco_Id:$realecoId, kubo_Id: $kuboId, "+
" universoObjektojUniversoobjektoligiloLigiloObjekto_Isnull:true, "+
" koordinatoX_Isnull:false " +
" ) { edges { node { uuid posedantoId "+
" projekto (statuso_Id: $statusoId, tipo_Id: $tipoId){ "+
" edges { node { uuid "+
" tasko (kategorio_Id:$kategorioId){ edges {node { "+
" uuid finKoordinatoX finKoordinatoY finKoordinatoZ statuso {objId} } } } } } } "+
" nomo { enhavo } priskribo { enhavo } "+
" resurso { objId nomo { enhavo } priskribo { enhavo } "+
" tipo { objId nomo { enhavo } } "+
" ligilo { edges { node { ligilo { "+
" objId nomo{enhavo} priskribo{enhavo} "+
" tipo{ objId nomo{enhavo} } } } } } "+
" } "+
" koordinatoX koordinatoY koordinatoZ "+
' posedantoObjekto '+
' { uuid } '+
" nomo{enhavo}" +
" ligilo{edges{node{ligilo{ nomo{enhavo} ligilo{edges{node{" +
" konektiloPosedanto konektiloLigilo" +
" ligilo{ uuid }}}}}" +
" tipo{objId}}}}" +
" posedanto{edges{node{" +
" posedantoUzanto{ siriusoUzanto{ objId}}}}}" +
" rotaciaX rotaciaY rotaciaZ } } } }",
'variables': {"kuboId":kuboId, "statusoId":statusoId,
"kategorioId":kategorioId, "tipoId":tipoId,
"realecoId":Global.realeco} })
# запрос на список управляемых объектов # запрос на список управляемых объектов
func get_direktebla_query(statusoId, kategorioId, tipoId): func get_direktebla_query(statusoId, kategorioId, tipoId):
var query = JSON.print({ "query": "query ($UzantoId:Int, $statusoId:Float, "+ var query = JSON.print({ "query": "query ($UzantoId:Int, $statusoId:Float, "+
...@@ -56,9 +21,6 @@ func get_direktebla_query(statusoId, kategorioId, tipoId): ...@@ -56,9 +21,6 @@ func get_direktebla_query(statusoId, kategorioId, tipoId):
" nomo { enhavo } priskribo { enhavo } "+ " nomo { enhavo } priskribo { enhavo } "+
" resurso { objId nomo { enhavo } priskribo { enhavo } "+ " resurso { objId nomo { enhavo } priskribo { enhavo } "+
" tipo { objId nomo { enhavo } } "+ " tipo { objId nomo { enhavo } } "+
" ligilo { edges { node { ligilo { "+
" objId nomo{enhavo} priskribo{enhavo} "+
" tipo{ objId nomo{enhavo} } } } } } "+
" } "+ " } "+
" koordinatoX koordinatoY koordinatoZ "+ " koordinatoX koordinatoY koordinatoZ "+
' posedantoObjekto '+ ' posedantoObjekto '+
...@@ -66,10 +28,13 @@ func get_direktebla_query(statusoId, kategorioId, tipoId): ...@@ -66,10 +28,13 @@ func get_direktebla_query(statusoId, kategorioId, tipoId):
" nomo{enhavo}" + " nomo{enhavo}" +
" ligiloLigilo{edges{node{uuid "+ " ligiloLigilo{edges{node{uuid "+
" posedanto{ kubo {objId} koordinatoX koordinatoY koordinatoZ }}}}" + " posedanto{ kubo {objId} koordinatoX koordinatoY koordinatoZ }}}}" +
" ligilo{edges{node{ ligilo{ nomo{enhavo} ligilo{edges{node{" + " ligilo{edges{node{ "+
" konektiloPosedanto konektiloLigilo" + " konektiloPosedanto konektiloLigilo tipo{objId} "+
" ligilo{ uuid }}}}}" + " ligilo{ uuid nomo{enhavo} integreco resurso{objId} "+
" tipo{objId}}}}" + " ligilo{edges{node{" +
" konektiloPosedanto konektiloLigilo tipo{objId} " +
" ligilo{ uuid integreco resurso{objId} }}}}}" +
" tipo{objId}}}}" +
" realeco{objId}" + " realeco{objId}" +
" posedanto{edges{node{" + " posedanto{edges{node{" +
" posedantoUzanto{ siriusoUzanto{ objId}}}}}" + " posedantoUzanto{ siriusoUzanto{ objId}}}}}" +
......
[remap]
importer="texture"
type="StreamTexture"
path.s3tc="res://.import/laser.png-0284a8d569d830ee24ab824a4f6dc723.s3tc.stex"
path.etc2="res://.import/laser.png-0284a8d569d830ee24ab824a4f6dc723.etc2.stex"
metadata={
"imported_formats": [ "s3tc", "etc2" ],
"vram_texture": true
}
[deps]
source_file="res://blokoj/kosmosxipoj/resursoj/laser.png"
dest_files=[ "res://.import/laser.png-0284a8d569d830ee24ab824a4f6dc723.s3tc.stex", "res://.import/laser.png-0284a8d569d830ee24ab824a4f6dc723.etc2.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
[gd_resource type="ShaderMaterial" load_steps=13 format=2]
[ext_resource path="res://blokoj/kosmosxipoj/resursoj/laser.png" type="Texture" id=1]
[sub_resource type="VisualShaderNodeInput" id=1]
input_name = "time"
[sub_resource type="VisualShaderNodeColorUniform" id=2]
output_port_for_preview = 0
uniform_name = "laser_color"
[sub_resource type="VisualShaderNodeTexture" id=3]
texture = ExtResource( 1 )
[sub_resource type="OpenSimplexNoise" id=4]
[sub_resource type="NoiseTexture" id=5]
width = 64
height = 64
seamless = true
noise = SubResource( 4 )
[sub_resource type="VisualShaderNodeTexture" id=6]
texture = SubResource( 5 )
[sub_resource type="VisualShaderNodeVectorOp" id=7]
output_port_for_preview = 0
operator = 2
[sub_resource type="VisualShaderNodeInput" id=8]
input_name = "uv"
[sub_resource type="VisualShaderNodeVectorOp" id=9]
output_port_for_preview = 0
operator = 1
[sub_resource type="VisualShaderNodeVectorCompose" id=10]
[sub_resource type="VisualShader" id=11]
code = "shader_type spatial;
render_mode cull_disabled, unshaded, shadows_disabled;
uniform vec4 laser_color : hint_color;
uniform sampler2D tex_frg_4;
uniform sampler2D tex_frg_5;
void vertex() {
// Output:0
}
void fragment() {
// ColorUniform:2
vec3 n_out2p0 = laser_color.rgb;
float n_out2p1 = laser_color.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;
// Input:7
vec3 n_out7p0 = vec3(UV, 0.0);
// Input:10
float n_out10p0 = TIME;
// VectorCompose:9
float n_in9p1 = 0.00000;
float n_in9p2 = 0.00000;
vec3 n_out9p0 = vec3(n_out10p0, n_in9p1, n_in9p2);
// VectorOp:8
vec3 n_out8p0 = n_out7p0 - n_out9p0;
// Texture:5
vec4 tex_frg_5_read = texture(tex_frg_5, n_out8p0.xy);
vec3 n_out5p0 = tex_frg_5_read.rgb;
float n_out5p1 = tex_frg_5_read.a;
// VectorOp:6
vec3 n_out6p0 = n_out4p0 * n_out5p0;
// Output:0
ALBEDO = n_out2p0;
ALPHA = dot(n_out6p0, vec3(0.333333, 0.333333, 0.333333));
EMISSION = n_out2p0;
}
void light() {
// Output:0
}
"
graph_offset = Vector2( 0, 150 )
modes/cull = 2
flags/shadows_disabled = true
flags/unshaded = true
nodes/fragment/0/position = Vector2( 1100, 0 )
nodes/fragment/2/node = SubResource( 2 )
nodes/fragment/2/position = Vector2( 680, 240 )
nodes/fragment/4/node = SubResource( 3 )
nodes/fragment/4/position = Vector2( 420, -60 )
nodes/fragment/5/node = SubResource( 6 )
nodes/fragment/5/position = Vector2( 460, 180 )
nodes/fragment/6/node = SubResource( 7 )
nodes/fragment/6/position = Vector2( 700, -20 )
nodes/fragment/7/node = SubResource( 8 )
nodes/fragment/7/position = Vector2( 60, 120 )
nodes/fragment/8/node = SubResource( 9 )
nodes/fragment/8/position = Vector2( 240, 100 )
nodes/fragment/9/node = SubResource( 10 )
nodes/fragment/9/position = Vector2( 60, 200 )
nodes/fragment/10/node = SubResource( 1 )
nodes/fragment/10/position = Vector2( 40, 360 )
nodes/fragment/connections = PoolIntArray( 4, 0, 6, 0, 5, 0, 6, 1, 2, 0, 0, 5, 2, 0, 0, 0, 6, 0, 0, 1, 7, 0, 8, 0, 8, 0, 5, 0, 9, 0, 8, 1, 10, 0, 9, 0 )
[resource]
shader = SubResource( 11 )
shader_param/laser_color = null
Нет предварительного просмотра для этого типа файлов
Нет предварительного просмотра для этого типа файлов
Нет предварительного просмотра для этого типа файлов
[gd_scene load_steps=3 format=2] [gd_scene load_steps=4 format=2]
[ext_resource path="res://blokoj/kosmosxipoj/scenoj/baseSpaceship/cabine.glb" type="PackedScene" id=1] [ext_resource path="res://blokoj/kosmosxipoj/scenoj/baseSpaceship/cabine.glb" type="PackedScene" id=1]
[ext_resource path="res://blokoj/kosmosxipoj/scenoj/baseSpaceship/cabine.material" type="Material" id=2] [ext_resource path="res://blokoj/kosmosxipoj/scenoj/baseSpaceship/cabine.material" type="Material" id=2]
[ext_resource path="res://blokoj/kosmosxipoj/skriptoj/moduloj/modulo.gd" type="Script" id=3]
[node name="cabine" instance=ExtResource( 1 )] [node name="cabine" instance=ExtResource( 1 )]
script = ExtResource( 3 )
[node name="cabine" parent="." index="0"] [node name="cabine" parent="." index="0"]
transform = Transform( 0, 0, 1, 0, 1, 0, -1, 0, 0, 0, 2, 2 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
material/0 = ExtResource( 2 ) material/0 = ExtResource( 2 )
[gd_scene load_steps=2 format=2] [gd_scene load_steps=3 format=2]
[ext_resource path="res://blokoj/kosmosxipoj/scenoj/baseSpaceship/cargo.glb" type="PackedScene" id=1] [ext_resource path="res://blokoj/kosmosxipoj/scenoj/baseSpaceship/cargo.glb" type="PackedScene" id=1]
[ext_resource path="res://blokoj/kosmosxipoj/skriptoj/moduloj/modulo.gd" type="Script" id=2]
[node name="cargo" instance=ExtResource( 1 )] [node name="cargo" instance=ExtResource( 1 )]
script = ExtResource( 2 )
[node name="cargo" parent="." index="0"] [node name="Cargo" parent="." index="0"]
transform = Transform( -0.0166846, 0, 0.999861, 0, 1, 0, -0.999861, 0, -0.0166846, 0, 2, 8 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
[gd_scene load_steps=3 format=2]
[ext_resource path="res://blokoj/kosmosxipoj/scenoj/baseSpaceship/engine.glb" type="PackedScene" id=1]
[ext_resource path="res://blokoj/kosmosxipoj/skriptoj/moduloj/modulo.gd" type="Script" id=2]
[node name="engine" instance=ExtResource( 1 )]
script = ExtResource( 2 )
[node name="engine R" parent="." index="0"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать