Interior algorithm taking its shape
This commit is contained in:
38
proto3/godot/city/contour_building_gen.tscn
Normal file
38
proto3/godot/city/contour_building_gen.tscn
Normal file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://city/building.gd" type="Script" id=1]
|
||||
[ext_resource path="res://city/cam.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=1]
|
||||
albedo_color = Color( 0.180392, 0.737255, 0.490196, 1 )
|
||||
|
||||
[sub_resource type="PlaneMesh" id=2]
|
||||
material = SubResource( 1 )
|
||||
size = Vector2( 200, 200 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=3]
|
||||
flags_unshaded = true
|
||||
flags_vertex_lighting = true
|
||||
vertex_color_use_as_albedo = true
|
||||
params_line_width = 3.0
|
||||
params_point_size = 3.0
|
||||
|
||||
[node name="contour_building_gen" type="Spatial"]
|
||||
|
||||
[node name="cam" type="Camera" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 10, 10 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="MeshInstance" type="MeshInstance" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.843487, 0 )
|
||||
mesh = SubResource( 2 )
|
||||
material/0 = null
|
||||
|
||||
[node name="building" type="Spatial" parent="."]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="debug" type="ImmediateGeometry" parent="building"]
|
||||
material_override = SubResource( 3 )
|
||||
|
||||
[node name="DirectionalLight" type="DirectionalLight" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 0.866025, 0.5, 0, -0.5, 0.866025, 0, 20, 0 )
|
||||
Reference in New Issue
Block a user