new method of creating preview
This commit is contained in:
@@ -1,13 +1,20 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://bcme5mx8nf5kf"]
|
||||
[gd_scene load_steps=14 format=3 uid="uid://bcme5mx8nf5kf"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c61rr6to3q566" path="res://Scripts/build_object.gd" id="1_c5d30"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://dqs5joeucls8u" path="res://Blends/Pot/pot.obj" id="1_ps8qt"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4cvsuxeqt068" path="res://Blends/Pot/pot_metal.jpg" id="2_c5d30"]
|
||||
[ext_resource type="Shader" uid="uid://bfv6ckihralab" path="res://Shaders/build_transparent.gdshader" id="2_ocdig"]
|
||||
[ext_resource type="Texture2D" uid="uid://fom8shxpn476" path="res://Blends/Pot/pot_brick.jpg" id="3_ocdig"]
|
||||
[ext_resource type="Texture2D" uid="uid://bw8k6hmfrwj60" path="res://Blends/Pot/rougness_m.png" id="4_vv7mx"]
|
||||
[ext_resource type="Texture2D" uid="uid://cdb7b2ef31ixv" path="res://Blends/Pot/pot_wood.jpg" id="5_gtq0i"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxgm6oovlxdjq" path="res://Blends/Pot/wood_n.png" id="6_r71lq"]
|
||||
[ext_resource type="Texture2D" uid="uid://run700pxmcyc" path="res://Blends/Pot/brick_t.png" id="7_e7ek7"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_vv7mx"]
|
||||
render_priority = 0
|
||||
shader = ExtResource("2_ocdig")
|
||||
shader_parameter/color = Vector3(0, 0, 0)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dn6sd"]
|
||||
albedo_texture = ExtResource("2_c5d30")
|
||||
roughness = 0.4
|
||||
@@ -24,8 +31,11 @@ normal_texture = ExtResource("6_r71lq")
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_rbvpf"]
|
||||
albedo_texture = ExtResource("7_e7ek7")
|
||||
|
||||
[node name="Pot" type="Node3D"]
|
||||
[node name="Pot" type="Node3D" node_paths=PackedStringArray("meshInstance")]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
|
||||
script = ExtResource("1_c5d30")
|
||||
meshInstance = NodePath("Pot")
|
||||
preview_shader = SubResource("ShaderMaterial_vv7mx")
|
||||
|
||||
[node name="Pot" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -3.41814, 0)
|
||||
|
||||
Reference in New Issue
Block a user