1628c1e3b3
- Add directional light in Level_01 - Reset default environment
50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
[gd_scene load_steps=7 format=2]
|
|
|
|
[sub_resource type="CubeMesh" id=1]
|
|
|
|
|
|
[sub_resource type="SpatialMaterial" id=2]
|
|
|
|
albedo_color = Color( 0.0114746, 0.367188, 0.0420437, 1 )
|
|
roughness = 0.0
|
|
|
|
[sub_resource type="BoxShape" id=3]
|
|
|
|
|
|
[sub_resource type="CubeMesh" id=4]
|
|
|
|
|
|
[sub_resource type="Shader" id=5]
|
|
|
|
code = "shader_type spatial;
|
|
|
|
void fragment() {
|
|
ALBEDO = vec3(1.0, 0.0, 0.0);
|
|
}"
|
|
|
|
[sub_resource type="ShaderMaterial" id=6]
|
|
|
|
shader = SubResource( 5 )
|
|
|
|
[node name="Spatial" type="Spatial"]
|
|
|
|
[node name="MeshSpatial" type="MeshInstance" parent="."]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -2.6011, 0, 0 )
|
|
mesh = SubResource( 1 )
|
|
material/0 = SubResource( 2 )
|
|
|
|
[node name="StaticBody" type="StaticBody" parent="MeshSpatial"]
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="MeshSpatial/StaticBody"]
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="Camera" type="Camera" parent="."]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10 )
|
|
fov = 36.7994
|
|
|
|
[node name="MeshShader" type="MeshInstance" parent="."]
|
|
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 2.35384, 0, 0 )
|
|
mesh = SubResource( 4 )
|
|
material/0 = SubResource( 6 )
|
|
|