mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
bf4a125386
Added initial support for alpha channel (in combine, decompose and blend nodes). Textures with alpha channels can be exported using the material node albedo input. Updated node editor with a simple editor for enumerated parameters.
73 lines
1.5 KiB
Plaintext
73 lines
1.5 KiB
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://addons/material_maker/renderer.gd" type="Script" id=1]
|
|
|
|
[sub_resource type="Shader" id=1]
|
|
|
|
code = "shader_type canvas_item;
|
|
|
|
void fragment() {
|
|
COLOR = vec4(1.0);
|
|
}
|
|
"
|
|
|
|
[sub_resource type="ShaderMaterial" id=2]
|
|
|
|
render_priority = 0
|
|
shader = SubResource( 1 )
|
|
|
|
[node name="Renderer" type="Viewport" index="0"]
|
|
|
|
arvr = false
|
|
size = Vector2( 0, 0 )
|
|
own_world = true
|
|
world = null
|
|
transparent_bg = true
|
|
msaa = 2
|
|
hdr = false
|
|
disable_3d = false
|
|
usage = 2
|
|
debug_draw = 0
|
|
render_target_v_flip = true
|
|
render_target_clear_mode = 0
|
|
render_target_update_mode = 1
|
|
audio_listener_enable_2d = false
|
|
audio_listener_enable_3d = false
|
|
physics_object_picking = false
|
|
gui_disable_input = true
|
|
gui_snap_controls_to_pixels = true
|
|
shadow_atlas_size = 0
|
|
shadow_atlas_quad_0 = 2
|
|
shadow_atlas_quad_1 = 2
|
|
shadow_atlas_quad_2 = 3
|
|
shadow_atlas_quad_3 = 4
|
|
script = ExtResource( 1 )
|
|
_sections_unfolded = [ "GUI", "Render Target", "Rendering" ]
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="." index="0"]
|
|
|
|
material = SubResource( 2 )
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_right = 40.0
|
|
margin_bottom = 40.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
color = Color( 1, 1, 1, 1 )
|
|
_sections_unfolded = [ "Material", "Rect" ]
|
|
|
|
[node name="Timer" type="Timer" parent="." index="1"]
|
|
|
|
process_mode = 1
|
|
wait_time = 0.1
|
|
one_shot = true
|
|
autostart = false
|
|
|
|
|