diff --git a/SuperScaling/SuperScaling.gd b/SuperScaling/SuperScaling.gd index c619fa3..b562362 100644 --- a/SuperScaling/SuperScaling.gd +++ b/SuperScaling/SuperScaling.gd @@ -10,7 +10,7 @@ export (int, "3D", "2D") var usage = 0 export (int, "Disabled", "2X", "4X", "8X", "16X") var msaa = 0 setget change_msaa export (bool) var fxaa = false setget change_fxaa export (int, 1, 4096) var shadow_atlas = 4096 setget change_shadow_atlas -onready var sampler_shader = load(get_script().resource_path.get_base_dir() + "/SuperScaling.gdshader") +onready var sampler_shader = load(get_script().resource_path.get_base_dir() + "/SuperScaling.tres") var sampler_material var game_node var overlay diff --git a/SuperScaling/SuperScaling.gdshader b/SuperScaling/SuperScaling.tres similarity index 98% rename from SuperScaling/SuperScaling.gdshader rename to SuperScaling/SuperScaling.tres index fada4fe..89d816f 100644 --- a/SuperScaling/SuperScaling.gdshader +++ b/SuperScaling/SuperScaling.tres @@ -1,4 +1,7 @@ -// [Godot Super Scaling] +[gd_resource type="Shader" format=2] + +[resource] +code = "// [Godot Super Scaling] // created by Andres Hernandez shader_type canvas_item; render_mode unshaded; @@ -177,3 +180,4 @@ void fragment() { result.a = 1.0; COLOR = result; } +"