]> Untitled Git - star-foxy.git/blob - player/bullet.tscn
Added materials
[star-foxy.git] / player / bullet.tscn
1 [gd_scene load_steps=6 format=2]
2
3 [ext_resource path="res://player/bullet.gd" type="Script" id=1]
4
5 [sub_resource type="BoxShape" id=1]
6 extents = Vector3( 0.200265, 0.163217, 1.15937 )
7
8 [sub_resource type="VisualShaderNodeColorConstant" id=2]
9 constant = Color( 0.934058, 0.128752, 0, 1 )
10
11 [sub_resource type="VisualShader" id=3]
12 code = "shader_type spatial;
13 render_mode specular_schlick_ggx, unshaded;
14
15
16
17
18 void vertex() {
19 // Output:0
20
21 }
22
23 void fragment() {
24 // Color:2
25         vec3 n_out2p0 = vec3(0.934058, 0.128752, 0.000000);
26         float n_out2p1 = 1.000000;
27
28 // Output:0
29         ALBEDO = n_out2p0;
30
31 }
32
33 void light() {
34 // Output:0
35
36 }
37 "
38 graph_offset = Vector2( 0, 20.4406 )
39 flags/unshaded = true
40 nodes/fragment/0/position = Vector2( 1560, 60 )
41 nodes/fragment/2/node = SubResource( 2 )
42 nodes/fragment/2/position = Vector2( 1040, 100 )
43 nodes/fragment/connections = PoolIntArray( 2, 0, 0, 0 )
44
45 [sub_resource type="ShaderMaterial" id=4]
46 shader = SubResource( 3 )
47
48 [node name="bullet" type="KinematicBody"]
49 collision_layer = 2
50 collision_mask = 0
51 script = ExtResource( 1 )
52
53 [node name="CollisionShape" type="CollisionShape" parent="."]
54 shape = SubResource( 1 )
55
56 [node name="CSGSphere" type="CSGSphere" parent="."]
57 transform = Transform( 2, 0, 0, 0, 2, 0, 0, 0, 16, 0, 0, 0 )
58 material_override = SubResource( 4 )
59 radius = 0.1