Skip to content

Commit

Permalink
Moved node scripts to a specific directory
Browse files Browse the repository at this point in the history
  • Loading branch information
RodZill4 committed Jul 12, 2023
1 parent d8579b8 commit 5ac1fa1
Show file tree
Hide file tree
Showing 20 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func do_update_shader() -> void:
if version == VERSION_COMPLEX:
f32 = get_parameter("f32")
await shader_compute.set_shader_from_shadercode(source, f32)
var new_is_greyscale = ((shader_compute.texture_type & 1) == 0)
var new_is_greyscale = ((shader_compute.get_texture_type() & 1) == 0)
if new_is_greyscale != is_greyscale:
is_greyscale = new_is_greyscale
notify_output_change(0)
Expand All @@ -122,7 +122,7 @@ func on_dep_update_buffer(buffer_name : String) -> bool:
return false
var status = await shader_compute.render(texture, pow(2, get_parameter("size")))
if status:
emit_signal("rendering_time", shader_compute.render_time)
emit_signal("rendering_time", shader_compute.get_render_time())
mm_deps.dependency_update(buffer_name, texture, true)
return true
return false
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func do_update_shader(input_port_index : int) -> void:
await shader_compute.set_shader_from_shadercode(source, f32, texture)
else:
await shader_compute.set_shader_from_shadercode(source, f32)
var new_is_greyscale = ((shader_compute.texture_type & 1) == 0)
var new_is_greyscale = ((shader_compute.get_texture_type() & 1) == 0)
if new_is_greyscale != is_greyscale[input_port_index]:
is_greyscale[input_port_index] = new_is_greyscale
notify_output_change(input_port_index)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions material_maker/windows/material_editor/export_editor.gd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var data : Dictionary = {}
var exports : Dictionary = {}


const GEN_MATERIAL = preload("res://addons/material_maker/engine/gen_material.gd")
const GEN_MATERIAL = preload("res://addons/material_maker/engine/nodes/gen_material.gd")


signal node_changed(model_data)
Expand Down Expand Up @@ -96,7 +96,7 @@ func select_file(i : int) -> void:
for p in f.file_params.keys():
file_export_context["$(file_param:"+p+")"] = f.file_params[p]
f.erase("file_params")
var template : String = GEN_MATERIAL.process_template(GEN_MATERIAL.get_template_text(f.template), file_export_context)
var template : String = MMGenMaterial.process_template(MMGenMaterial.get_template_text(f.template), file_export_context)
if template != f.template:
f.template = template
export_file_template.text = template
Expand Down

0 comments on commit 5ac1fa1

Please sign in to comment.