summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ShaderTestScreen.tscn21
-rw-r--r--addons/crt_shader/CRTFrame.png (renamed from CRTFrame.png)bin17559 -> 17559 bytes
-rw-r--r--addons/crt_shader/CRTFrame.png.import (renamed from CRTFrame.png.import)7
-rw-r--r--addons/crt_shader/CRTShader.shader (renamed from CRTShader.shader)0
-rw-r--r--addons/crt_shader/ShaderScreen.materialbin0 -> 395 bytes
-rw-r--r--addons/crt_shader/crt_shader.gd10
-rw-r--r--addons/crt_shader/plugin.cfg7
-rw-r--r--character.png.import1
-rw-r--r--icon.png.import1
-rw-r--r--project.godot5
-rw-r--r--sample.png.import1
-rw-r--r--shaderIcon.png.import1
-rw-r--r--white.png.import1
-rw-r--r--withshader.png.import1
14 files changed, 35 insertions, 21 deletions
diff --git a/ShaderTestScreen.tscn b/ShaderTestScreen.tscn
index 4154bc2..4b4ab74 100644
--- a/ShaderTestScreen.tscn
+++ b/ShaderTestScreen.tscn
@@ -1,11 +1,11 @@
-[gd_scene load_steps=29 format=2]
+[gd_scene load_steps=28 format=2]
[ext_resource path="res://sample.png" type="Texture" id=1]
[ext_resource path="res://white.png" type="Texture" id=2]
-[ext_resource path="res://CRTFrame.png" type="Texture" id=3]
+[ext_resource path="res://addons/crt_shader/CRTFrame.png" type="Texture" id=3]
[ext_resource path="res://character.png" type="Texture" id=4]
[ext_resource path="res://Character.gd" type="Script" id=5]
-[ext_resource path="res://CRTShader.shader" type="Shader" id=6]
+[ext_resource path="res://addons/crt_shader/ShaderScreen.material" type="Material" id=6]
[sub_resource type="AtlasTexture" id=9]
flags = 4
@@ -183,19 +183,6 @@ shader_param/size_screen = 600.0
shader_param/scanline_alpha = 0.9
shader_param/lines_velocity = 30.0
-[sub_resource type="ShaderMaterial" id=8]
-shader = ExtResource( 6 )
-shader_param/screen_width = 1024.0
-shader_param/screen_height = 600.0
-shader_param/BarrelPower = 1.12
-shader_param/color_bleeding = 2.0
-shader_param/bleeding_range_x = 2.0
-shader_param/bleeding_range_y = 2.0
-shader_param/lines_distance = 3.0
-shader_param/scan_size = 2.0
-shader_param/scanline_alpha = 0.9
-shader_param/lines_velocity = 40.0
-
[node name="Control" type="Control"]
margin_right = 40.0
margin_bottom = 40.0
@@ -243,7 +230,7 @@ texture = ExtResource( 2 )
expand = true
[node name="CRT" type="TextureRect" parent="Shaders"]
-material = SubResource( 8 )
+material = ExtResource( 6 )
margin_right = 1024.0
margin_bottom = 600.0
texture = ExtResource( 2 )
diff --git a/CRTFrame.png b/addons/crt_shader/CRTFrame.png
index 9c5ca46..9c5ca46 100644
--- a/CRTFrame.png
+++ b/addons/crt_shader/CRTFrame.png
Binary files differ
diff --git a/CRTFrame.png.import b/addons/crt_shader/CRTFrame.png.import
index 73baf73..0ecb5d8 100644
--- a/CRTFrame.png.import
+++ b/addons/crt_shader/CRTFrame.png.import
@@ -2,15 +2,15 @@
importer="texture"
type="StreamTexture"
-path="res://.import/CRTFrame.png-96837578d803d46c371247267c1fa407.stex"
+path="res://.import/CRTFrame.png-872eedb156a5c6ffe1f1a64a1e49445b.stex"
metadata={
"vram_texture": false
}
[deps]
-source_file="res://CRTFrame.png"
-dest_files=[ "res://.import/CRTFrame.png-96837578d803d46c371247267c1fa407.stex" ]
+source_file="res://addons/crt_shader/CRTFrame.png"
+dest_files=[ "res://.import/CRTFrame.png-872eedb156a5c6ffe1f1a64a1e49445b.stex" ]
[params]
@@ -28,6 +28,7 @@ process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
+process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
diff --git a/CRTShader.shader b/addons/crt_shader/CRTShader.shader
index d7e8afd..d7e8afd 100644
--- a/CRTShader.shader
+++ b/addons/crt_shader/CRTShader.shader
diff --git a/addons/crt_shader/ShaderScreen.material b/addons/crt_shader/ShaderScreen.material
new file mode 100644
index 0000000..6ca3664
--- /dev/null
+++ b/addons/crt_shader/ShaderScreen.material
Binary files differ
diff --git a/addons/crt_shader/crt_shader.gd b/addons/crt_shader/crt_shader.gd
new file mode 100644
index 0000000..49e712e
--- /dev/null
+++ b/addons/crt_shader/crt_shader.gd
@@ -0,0 +1,10 @@
+tool
+extends EditorPlugin
+
+
+func _enter_tree():
+ pass
+
+
+func _exit_tree():
+ pass
diff --git a/addons/crt_shader/plugin.cfg b/addons/crt_shader/plugin.cfg
new file mode 100644
index 0000000..a267e3e
--- /dev/null
+++ b/addons/crt_shader/plugin.cfg
@@ -0,0 +1,7 @@
+[plugin]
+
+name="CRT Shader"
+description="A Simple CRT Shader material"
+author="Henrique Alves"
+version="1.0"
+script="crt_shader.gd"
diff --git a/character.png.import b/character.png.import
index a43cd0d..0457bcc 100644
--- a/character.png.import
+++ b/character.png.import
@@ -28,6 +28,7 @@ process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
+process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
diff --git a/icon.png.import b/icon.png.import
index 96cbf46..a4c02e6 100644
--- a/icon.png.import
+++ b/icon.png.import
@@ -28,6 +28,7 @@ process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
+process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
diff --git a/project.godot b/project.godot
index ddfcecb..3c6c16f 100644
--- a/project.godot
+++ b/project.godot
@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
-
}
[application]
@@ -19,6 +18,10 @@ config/name="CRTShader"
run/main_scene="res://ShaderTestScreen.tscn"
config/icon="res://shaderIcon.png"
+[editor_plugins]
+
+enabled=PoolStringArray( "res://addons/crt_shader/plugin.cfg" )
+
[rendering]
environment/default_environment="res://default_env.tres"
diff --git a/sample.png.import b/sample.png.import
index 30ae8b5..420e285 100644
--- a/sample.png.import
+++ b/sample.png.import
@@ -28,6 +28,7 @@ process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
+process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
diff --git a/shaderIcon.png.import b/shaderIcon.png.import
index 763f604..6ce0fdd 100644
--- a/shaderIcon.png.import
+++ b/shaderIcon.png.import
@@ -28,6 +28,7 @@ process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
+process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
diff --git a/white.png.import b/white.png.import
index b7b4631..bb87421 100644
--- a/white.png.import
+++ b/white.png.import
@@ -28,6 +28,7 @@ process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
+process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
diff --git a/withshader.png.import b/withshader.png.import
index 5660359..9a98bbb 100644
--- a/withshader.png.import
+++ b/withshader.png.import
@@ -28,6 +28,7 @@ process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
+process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true