mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
Moved everything not necessary for the plugin away from "addons"
This commit is contained in:
parent
0d05c4770c
commit
b6a2d08f78
@ -1,8 +0,0 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://addons/material_maker/icons/icons.svg" type="Texture" id=1]
|
||||
|
||||
[resource]
|
||||
flags = 4
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 80, 32, 16, 16 )
|
@ -1,8 +0,0 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://addons/material_maker/icons/icons.svg" type="Texture" id=1]
|
||||
|
||||
[resource]
|
||||
flags = 4
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 64, 32, 16, 16 )
|
@ -5,8 +5,8 @@ var plugin = null
|
||||
|
||||
const PRESET_NAMES = [ "Render in game", "Prerender" ]
|
||||
const PRESET_OPTIONS = [
|
||||
[{ name="render", default_value=false }],
|
||||
[{ name="render", default_value=true }]
|
||||
[{ name="render", default_value=false }, { name="scale", default_value=1.0 }],
|
||||
[{ name="render", default_value=true }, { name="scale", default_value=1.0 }]
|
||||
]
|
||||
|
||||
func _init(p) -> void:
|
||||
@ -47,18 +47,19 @@ func get_visible_name() -> String:
|
||||
|
||||
func import(source_file: String, save_path: String, options: Dictionary, platform_variants: Array, gen_files: Array) -> int:
|
||||
var filename = save_path + "." + get_save_extension()
|
||||
var material = null
|
||||
if options.render:
|
||||
var material = plugin.generate_material(source_file)
|
||||
material = plugin.generate_material(source_file)
|
||||
while material is GDScriptFunctionState:
|
||||
material = yield(material, "completed")
|
||||
if material != null:
|
||||
ResourceSaver.save(filename, material)
|
||||
else:
|
||||
var material : SpatialMaterial = SpatialMaterial.new()
|
||||
material = SpatialMaterial.new()
|
||||
material.set_script(preload("res://addons/material_maker/import_plugin/ptex_spatial_material.gd"))
|
||||
var file : File = File.new()
|
||||
if file.open(source_file, File.READ) == OK:
|
||||
material.set_ptex_no_render(to_json(parse_json(file.get_as_text())))
|
||||
file.close()
|
||||
ResourceSaver.save(filename, material)
|
||||
if material != null:
|
||||
material.uv1_scale = options.scale * Vector3(1.0, 1.0, 1.0)
|
||||
ResourceSaver.save(filename, material)
|
||||
return OK
|
||||
|
@ -26,4 +26,4 @@ func update_texture() -> void:
|
||||
status = yield(status, "completed")
|
||||
mm_material.update_spatial_material(self)
|
||||
mm_graph.queue_free()
|
||||
|
||||
|
||||
|
@ -1,34 +0,0 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/godot_logo.png-c9bdd957bdf7bbb36b171f76b9548159.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/material_maker/nodes/image/godot_logo.png"
|
||||
dest_files=[ "res://.import/godot_logo.png-c9bdd957bdf7bbb36b171f76b9548159.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
@ -1,34 +0,0 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/epping_forest_01.hdr-3c7ece2e0e9ac3d51721fb81f0f4853b.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/material_maker/preview/panoramas/epping_forest_01.hdr"
|
||||
dest_files=[ "res://.import/epping_forest_01.hdr-3c7ece2e0e9ac3d51721fb81f0f4853b.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
19
demo/demo.tscn
Normal file
19
demo/demo.tscn
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://material_maker/examples/skulls.ptex" type="Material" id=1]
|
||||
|
||||
[sub_resource type="CubeMesh" id=1]
|
||||
|
||||
[node name="Spatial" type="Spatial"]
|
||||
|
||||
[node name="MeshInstance" type="MeshInstance" parent="."]
|
||||
mesh = SubResource( 1 )
|
||||
material/0 = ExtResource( 1 )
|
||||
|
||||
[node name="Spatial" type="Spatial" parent="."]
|
||||
|
||||
[node name="Camera" type="Camera" parent="Spatial"]
|
||||
transform = Transform( 1, 0, 0, 0, 0.896973, 0.442085, 0, -0.442085, 0.896973, 0, 1.78914, 4.2882 )
|
||||
|
||||
[node name="OmniLight" type="OmniLight" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4.21974, 3.39093, 0 )
|
File diff suppressed because one or more lines are too long
14
material_maker/examples/3d_shapes.ptex.import
Normal file
14
material_maker/examples/3d_shapes.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/3d_shapes.ptex-fdbdf93744127700e5f17a837ca716e7.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/3d_shapes.ptex"
|
||||
dest_files=[ "res://.import/3d_shapes.ptex-fdbdf93744127700e5f17a837ca716e7.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/beehive.ptex.import
Normal file
14
material_maker/examples/beehive.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/beehive.ptex-51715262d81c1a144e9a7e141a45db7f.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/beehive.ptex"
|
||||
dest_files=[ "res://.import/beehive.ptex-51715262d81c1a144e9a7e141a45db7f.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/biohazard.ptex.import
Normal file
14
material_maker/examples/biohazard.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/biohazard.ptex-7f147a6da8459c3f121e4ff97781005f.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/biohazard.ptex"
|
||||
dest_files=[ "res://.import/biohazard.ptex-7f147a6da8459c3f121e4ff97781005f.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/brick_rotated.ptex.import
Normal file
14
material_maker/examples/brick_rotated.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/brick_rotated.ptex-523d59c690c5371f32f259e6a1da3fd9.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/brick_rotated.ptex"
|
||||
dest_files=[ "res://.import/brick_rotated.ptex-523d59c690c5371f32f259e6a1da3fd9.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/bricks.ptex.import
Normal file
14
material_maker/examples/bricks.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/bricks.ptex-8a4a409b5b41c018677a6156ef3f93e5.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/bricks.ptex"
|
||||
dest_files=[ "res://.import/bricks.ptex-8a4a409b5b41c018677a6156ef3f93e5.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/clump_of_grass.ptex.import
Normal file
14
material_maker/examples/clump_of_grass.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/clump_of_grass.ptex-f0fa2e6dda8708b9aa2491696fc29cde.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/clump_of_grass.ptex"
|
||||
dest_files=[ "res://.import/clump_of_grass.ptex-f0fa2e6dda8708b9aa2491696fc29cde.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/crocodile_skin.ptex.import
Normal file
14
material_maker/examples/crocodile_skin.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/crocodile_skin.ptex-398dcbc43eaacec55b210f3f06b38a36.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/crocodile_skin.ptex"
|
||||
dest_files=[ "res://.import/crocodile_skin.ptex-398dcbc43eaacec55b210f3f06b38a36.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/doc_tools.ptex.import
Normal file
14
material_maker/examples/doc_tools.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/doc_tools.ptex-4ba87d8fd8f50f46518c89bbb13c85fd.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/doc_tools.ptex"
|
||||
dest_files=[ "res://.import/doc_tools.ptex-4ba87d8fd8f50f46518c89bbb13c85fd.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/dry_earth.ptex.import
Normal file
14
material_maker/examples/dry_earth.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/dry_earth.ptex-13acfd0cdc239e8962445ff516cb0a67.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/dry_earth.ptex"
|
||||
dest_files=[ "res://.import/dry_earth.ptex-13acfd0cdc239e8962445ff516cb0a67.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/emmental.ptex.import
Normal file
14
material_maker/examples/emmental.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/emmental.ptex-c0863356db9414878f0cd8b90b863568.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/emmental.ptex"
|
||||
dest_files=[ "res://.import/emmental.ptex-c0863356db9414878f0cd8b90b863568.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/floor1.ptex.import
Normal file
14
material_maker/examples/floor1.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/floor1.ptex-fb54baf7242d73ad5e0d97d70fc2ffe8.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/floor1.ptex"
|
||||
dest_files=[ "res://.import/floor1.ptex-fb54baf7242d73ad5e0d97d70fc2ffe8.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/floor2.ptex.import
Normal file
14
material_maker/examples/floor2.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/floor2.ptex-da3b9c107b59a68a0ac827a6690612c9.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/floor2.ptex"
|
||||
dest_files=[ "res://.import/floor2.ptex-da3b9c107b59a68a0ac827a6690612c9.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/grass_with_flowers.ptex.import
Normal file
14
material_maker/examples/grass_with_flowers.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/grass_with_flowers.ptex-c14125150522387de6157f5cba8b15e7.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/grass_with_flowers.ptex"
|
||||
dest_files=[ "res://.import/grass_with_flowers.ptex-c14125150522387de6157f5cba8b15e7.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/halloween.ptex.import
Normal file
14
material_maker/examples/halloween.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/halloween.ptex-bfac36287c4edfbe37d836f896e886e8.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/halloween.ptex"
|
||||
dest_files=[ "res://.import/halloween.ptex-bfac36287c4edfbe37d836f896e886e8.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/improved_brick.ptex.import
Normal file
14
material_maker/examples/improved_brick.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/improved_brick.ptex-79c07253474a6fefb8e704efc87ba6c5.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/improved_brick.ptex"
|
||||
dest_files=[ "res://.import/improved_brick.ptex-79c07253474a6fefb8e704efc87ba6c5.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/lava.ptex.import
Normal file
14
material_maker/examples/lava.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/lava.ptex-414f52da7b363c5ce34fb86dba1c326e.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/lava.ptex"
|
||||
dest_files=[ "res://.import/lava.ptex-414f52da7b363c5ce34fb86dba1c326e.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/mandala.ptex.import
Normal file
14
material_maker/examples/mandala.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/mandala.ptex-0963e6f90da0804792c0a2756af5f5dd.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/mandala.ptex"
|
||||
dest_files=[ "res://.import/mandala.ptex-0963e6f90da0804792c0a2756af5f5dd.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/mandelbrot.ptex.import
Normal file
14
material_maker/examples/mandelbrot.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/mandelbrot.ptex-ecf3c69e20a7f4e53370f6dbdf8d3840.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/mandelbrot.ptex"
|
||||
dest_files=[ "res://.import/mandelbrot.ptex-ecf3c69e20a7f4e53370f6dbdf8d3840.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/marble.ptex.import
Normal file
14
material_maker/examples/marble.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/marble.ptex-0b7e8ced36657d462bfe938e53d1f73b.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/marble.ptex"
|
||||
dest_files=[ "res://.import/marble.ptex-0b7e8ced36657d462bfe938e53d1f73b.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/materials.ptex.import
Normal file
14
material_maker/examples/materials.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/materials.ptex-53d72a7b67477f2082dc05ffe4d8bcb4.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/materials.ptex"
|
||||
dest_files=[ "res://.import/materials.ptex-53d72a7b67477f2082dc05ffe4d8bcb4.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/medieval_wall.ptex.import
Normal file
14
material_maker/examples/medieval_wall.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/medieval_wall.ptex-28369316aeb5d9dfca15a3cfe9753817.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/medieval_wall.ptex"
|
||||
dest_files=[ "res://.import/medieval_wall.ptex-28369316aeb5d9dfca15a3cfe9753817.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/metal_pattern.ptex.import
Normal file
14
material_maker/examples/metal_pattern.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/metal_pattern.ptex-e025c128931ab21f0c2cdeab02c98d7e.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/metal_pattern.ptex"
|
||||
dest_files=[ "res://.import/metal_pattern.ptex-e025c128931ab21f0c2cdeab02c98d7e.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/metal_pattern_2.ptex.import
Normal file
14
material_maker/examples/metal_pattern_2.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/metal_pattern_2.ptex-13a437ede929314389a0e1af74aeaea7.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/metal_pattern_2.ptex"
|
||||
dest_files=[ "res://.import/metal_pattern_2.ptex-13a437ede929314389a0e1af74aeaea7.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/metal_pattern_3.ptex.import
Normal file
14
material_maker/examples/metal_pattern_3.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/metal_pattern_3.ptex-63819f6ac26d3e33f84ee3007313bc4a.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/metal_pattern_3.ptex"
|
||||
dest_files=[ "res://.import/metal_pattern_3.ptex-63819f6ac26d3e33f84ee3007313bc4a.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/mosaic.ptex.import
Normal file
14
material_maker/examples/mosaic.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/mosaic.ptex-54dc20f1bcb9e75989bd7edbf0eefb3f.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/mosaic.ptex"
|
||||
dest_files=[ "res://.import/mosaic.ptex-54dc20f1bcb9e75989bd7edbf0eefb3f.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/paper.ptex.import
Normal file
14
material_maker/examples/paper.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/paper.ptex-9bf458e14ff2684526a7ca610ab6e0ce.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/paper.ptex"
|
||||
dest_files=[ "res://.import/paper.ptex-9bf458e14ff2684526a7ca610ab6e0ce.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/pentagram.ptex.import
Normal file
14
material_maker/examples/pentagram.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/pentagram.ptex-7721d9a35a97fa5e212e6e7db0ace1f0.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/pentagram.ptex"
|
||||
dest_files=[ "res://.import/pentagram.ptex-7721d9a35a97fa5e212e6e7db0ace1f0.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/pile_of_bricks.ptex.import
Normal file
14
material_maker/examples/pile_of_bricks.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/pile_of_bricks.ptex-e452e231879d20f4c0b968f5aeb5cce8.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/pile_of_bricks.ptex"
|
||||
dest_files=[ "res://.import/pile_of_bricks.ptex-e452e231879d20f4c0b968f5aeb5cce8.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/planet.ptex.import
Normal file
14
material_maker/examples/planet.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/planet.ptex-6fec3bea6b82b2a8aad4cadc105ed701.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/planet.ptex"
|
||||
dest_files=[ "res://.import/planet.ptex-6fec3bea6b82b2a8aad4cadc105ed701.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/radiation.ptex.import
Normal file
14
material_maker/examples/radiation.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/radiation.ptex-5339c3a3e4abda484ef198d06cc51d03.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/radiation.ptex"
|
||||
dest_files=[ "res://.import/radiation.ptex-5339c3a3e4abda484ef198d06cc51d03.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/raymarching.ptex.import
Normal file
14
material_maker/examples/raymarching.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/raymarching.ptex-2478648d0e15bf392f6c3b9155c8b1d6.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/raymarching.ptex"
|
||||
dest_files=[ "res://.import/raymarching.ptex-2478648d0e15bf392f6c3b9155c8b1d6.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/rock.ptex.import
Normal file
14
material_maker/examples/rock.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/rock.ptex-790cf04ee0b49be08c43969cd33f57be.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/rock.ptex"
|
||||
dest_files=[ "res://.import/rock.ptex-790cf04ee0b49be08c43969cd33f57be.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/rusted_metal.ptex.import
Normal file
14
material_maker/examples/rusted_metal.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/rusted_metal.ptex-67dbbbc635e49a12125db6eef7e9fe27.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/rusted_metal.ptex"
|
||||
dest_files=[ "res://.import/rusted_metal.ptex-67dbbbc635e49a12125db6eef7e9fe27.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
15
material_maker/examples/skulls.ptex.import
Normal file
15
material_maker/examples/skulls.ptex.import
Normal file
@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer=""
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/skulls.ptex-a7a3a956ab3a92097a30ab2e5a72ebbb.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/skulls.ptex"
|
||||
dest_files=[ "res://.import/skulls.ptex-a7a3a956ab3a92097a30ab2e5a72ebbb.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
||||
scale=3.0
|
14
material_maker/examples/splatter.ptex.import
Normal file
14
material_maker/examples/splatter.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/splatter.ptex-f748997def40cd9d42946f8f2d6fa745.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/splatter.ptex"
|
||||
dest_files=[ "res://.import/splatter.ptex-f748997def40cd9d42946f8f2d6fa745.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/stone_wall.ptex.import
Normal file
14
material_maker/examples/stone_wall.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/stone_wall.ptex-05814a2113c8a1efcba6aa5a44180dd6.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/stone_wall.ptex"
|
||||
dest_files=[ "res://.import/stone_wall.ptex-05814a2113c8a1efcba6aa5a44180dd6.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/tiles.ptex.import
Normal file
14
material_maker/examples/tiles.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/tiles.ptex-bb40bd3764e59f94a21d6514626ca2f3.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/tiles.ptex"
|
||||
dest_files=[ "res://.import/tiles.ptex-bb40bd3764e59f94a21d6514626ca2f3.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/wood.ptex.import
Normal file
14
material_maker/examples/wood.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/wood.ptex-9103d7621dd6a30936fcbd644ea5b97c.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/wood.ptex"
|
||||
dest_files=[ "res://.import/wood.ptex-9103d7621dd6a30936fcbd644ea5b97c.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/wood_with_blood.ptex.import
Normal file
14
material_maker/examples/wood_with_blood.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/wood_with_blood.ptex-9f2bb1b75f00c94dc21c9e25c9a4c345.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/wood_with_blood.ptex"
|
||||
dest_files=[ "res://.import/wood_with_blood.ptex-9f2bb1b75f00c94dc21c9e25c9a4c345.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
14
material_maker/examples/wooden_floor.ptex.import
Normal file
14
material_maker/examples/wooden_floor.ptex.import
Normal file
@ -0,0 +1,14 @@
|
||||
[remap]
|
||||
|
||||
importer="material_maker.import"
|
||||
type="SpatialMaterial"
|
||||
path="res://.import/wooden_floor.ptex-6a889ddc1c5f6eeeffb8ed3c8a6c223f.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/examples/wooden_floor.ptex"
|
||||
dest_files=[ "res://.import/wooden_floor.ptex-6a889ddc1c5f6eeeffb8ed3c8a6c223f.tres" ]
|
||||
|
||||
[params]
|
||||
|
||||
render=false
|
@ -346,7 +346,7 @@ func create_subgraph() -> void:
|
||||
update_view(subgraph)
|
||||
|
||||
func _on_ButtonShowTree_pressed() -> void:
|
||||
var graph_tree : Popup = preload("res://addons/material_maker/widgets/graph_tree/graph_tree.tscn").instance()
|
||||
var graph_tree : Popup = preload("res://material_maker/widgets/graph_tree/graph_tree.tscn").instance()
|
||||
graph_tree.init("Top", top_generator)
|
||||
add_child(graph_tree)
|
||||
graph_tree.connect("item_double_clicked", self, "edit_subgraph")
|
@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://addons/material_maker/graph_edit.gd" type="Script" id=1]
|
||||
[ext_resource path="res://addons/material_maker/icons/icons.svg" type="Texture" id=2]
|
||||
[ext_resource path="res://material_maker/graph_edit.gd" type="Script" id=1]
|
||||
[ext_resource path="res://material_maker/icons/icons.svg" type="Texture" id=2]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 0.6, 0.6, 0.6, 0 )
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
@ -2,15 +2,15 @@
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icon.png-102e1e6732886eb945051a060861d203.stex"
|
||||
path="res://.import/icon.png-67b1716fab2a9a6a9b5b60b1c38f8359.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/material_maker/icons/icon.png"
|
||||
dest_files=[ "res://.import/icon.png-102e1e6732886eb945051a060861d203.stex" ]
|
||||
source_file="res://material_maker/icons/icon.png"
|
||||
dest_files=[ "res://.import/icon.png-67b1716fab2a9a6a9b5b60b1c38f8359.stex" ]
|
||||
|
||||
[params]
|
||||
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
@ -2,15 +2,15 @@
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icons.svg-d2e3029ae68e242c75d7182ab1a1b6f4.stex"
|
||||
path="res://.import/icons.svg-7e4b30239fa94a02566e96134c06aedb.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/material_maker/icons/icons.svg"
|
||||
dest_files=[ "res://.import/icons.svg-d2e3029ae68e242c75d7182ab1a1b6f4.stex" ]
|
||||
source_file="res://material_maker/icons/icons.svg"
|
||||
dest_files=[ "res://.import/icons.svg-7e4b30239fa94a02566e96134c06aedb.stex" ]
|
||||
|
||||
[params]
|
||||
|
@ -1,6 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://addons/material_maker/icons/icons.svg" type="Texture" id=1]
|
||||
[ext_resource path="res://material_maker/icons/icons.svg" type="Texture" id=1]
|
||||
|
||||
|
||||
[resource]
|
||||
flags = 4
|
10
material_maker/icons/randomness_locked.tres
Normal file
10
material_maker/icons/randomness_locked.tres
Normal file
@ -0,0 +1,10 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=2]
|
||||
|
||||
[sub_resource type="StreamTexture" id=1]
|
||||
flags = 4
|
||||
load_path = "res://.import/icons.svg-d2e3029ae68e242c75d7182ab1a1b6f4.stex"
|
||||
|
||||
[resource]
|
||||
flags = 4
|
||||
atlas = SubResource( 1 )
|
||||
region = Rect2( 80, 32, 16, 16 )
|
10
material_maker/icons/randomness_unlocked.tres
Normal file
10
material_maker/icons/randomness_unlocked.tres
Normal file
@ -0,0 +1,10 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=2]
|
||||
|
||||
[sub_resource type="StreamTexture" id=1]
|
||||
flags = 4
|
||||
load_path = "res://.import/icons.svg-d2e3029ae68e242c75d7182ab1a1b6f4.stex"
|
||||
|
||||
[resource]
|
||||
flags = 4
|
||||
atlas = SubResource( 1 )
|
||||
region = Rect2( 64, 32, 16, 16 )
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user