new outline shader
This commit is contained in:
@@ -1,22 +1,32 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://c0gypplbklc3i"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://c0gypplbklc3i"]
|
||||
|
||||
[ext_resource type="ArrayMesh" uid="uid://k2k1ppv3ycsv" path="res://Blends/Shelf/Shelf.obj" id="1_usf1u"]
|
||||
[ext_resource type="Script" uid="uid://c61rr6to3q566" path="res://Scripts/build_object.gd" id="1_ya6sq"]
|
||||
[ext_resource type="Shader" uid="uid://bfv6ckihralab" path="res://Shaders/build_transparent.gdshader" id="2_jbe2f"]
|
||||
[ext_resource type="Texture2D" uid="uid://5gmmgg4cmefr" path="res://Blends/Shelf/color.png" id="2_x70sl"]
|
||||
[ext_resource type="Texture2D" uid="uid://q0duenho1u2x" path="res://Blends/Shelf/normal.png" id="3_ya6sq"]
|
||||
[ext_resource type="Shader" uid="uid://c08eg1piwoy3t" path="res://Shaders/outline.gdshader" id="5_jbe2f"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_4318v"]
|
||||
render_priority = 0
|
||||
shader = ExtResource("2_jbe2f")
|
||||
shader_parameter/color = Vector3(0, 0, 0)
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_0dtcx"]
|
||||
render_priority = 0
|
||||
shader = ExtResource("5_jbe2f")
|
||||
shader_parameter/is_active = false
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_jbe2f"]
|
||||
next_pass = SubResource("ShaderMaterial_0dtcx")
|
||||
albedo_texture = ExtResource("2_x70sl")
|
||||
normal_enabled = true
|
||||
normal_scale = -1.88
|
||||
normal_texture = ExtResource("3_ya6sq")
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_jbe2f"]
|
||||
size = Vector3(4.40356, 3.34375, 1.28992)
|
||||
|
||||
[node name="Shelf" type="Node3D" node_paths=PackedStringArray("meshInstance")]
|
||||
script = ExtResource("1_ya6sq")
|
||||
meshInstance = NodePath("Shelf")
|
||||
@@ -26,3 +36,9 @@ preview_shader = SubResource("ShaderMaterial_4318v")
|
||||
transform = Transform3D(-2.18557e-08, 0, -0.5, 0, 0.5, 0, 0.5, 0, -2.18557e-08, 0, -1.53245, 0)
|
||||
mesh = ExtResource("1_usf1u")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_jbe2f")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="."]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0545654, 0.0981445, -0.0205688)
|
||||
shape = SubResource("BoxShape3D_jbe2f")
|
||||
|
||||
Reference in New Issue
Block a user