-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Files updated with fixed Pixelate effect and new Palette effect.
- Loading branch information
Showing
62 changed files
with
2,820 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Hey, you may notice that when exploring the /shaders/ directory there are some unused shaders, that means that they either are worked on or werent properly removed! |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://5rj5tlylm7bt" | ||
path="res://.godot/imported/ascii.png-152231094f5e4e2669cec888e3c259a5.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://addons/post_processing/assets/ascii.png" | ||
dest_files=["res://.godot/imported/ascii.png-152231094f5e4e2669cec888e3c259a5.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/high_quality=false | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/normal_map=0 | ||
compress/channel_pack=0 | ||
mipmaps/generate=false | ||
mipmaps/limit=-1 | ||
roughness/mode=0 | ||
roughness/src_normal="" | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/normal_map_invert_y=false | ||
process/hdr_as_srgb=false | ||
process/hdr_clamp_exposure=false | ||
process/size_limit=0 | ||
detect_3d/compress_to=1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://dovbwkiwlo153" | ||
path="res://.godot/imported/green_palette.png-6c780678de384f7686b5b49556c64591.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://addons/post_processing/assets/green_palette.png" | ||
dest_files=["res://.godot/imported/green_palette.png-6c780678de384f7686b5b49556c64591.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/high_quality=false | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/normal_map=0 | ||
compress/channel_pack=0 | ||
mipmaps/generate=false | ||
mipmaps/limit=-1 | ||
roughness/mode=0 | ||
roughness/src_normal="" | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/normal_map_invert_y=false | ||
process/hdr_as_srgb=false | ||
process/hdr_clamp_exposure=false | ||
process/size_limit=0 | ||
detect_3d/compress_to=1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions
34
addons/post_processing/assets/interesting_palette.png.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://nf2dcuadvrh7" | ||
path="res://.godot/imported/interesting_palette.png-f0563a3abea2f173a022c18d0ec48433.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://addons/post_processing/assets/interesting_palette.png" | ||
dest_files=["res://.godot/imported/interesting_palette.png-f0563a3abea2f173a022c18d0ec48433.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/high_quality=false | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/normal_map=0 | ||
compress/channel_pack=0 | ||
mipmaps/generate=false | ||
mipmaps/limit=-1 | ||
roughness/mode=0 | ||
roughness/src_normal="" | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/normal_map_invert_y=false | ||
process/hdr_as_srgb=false | ||
process/hdr_clamp_exposure=false | ||
process/size_limit=0 | ||
detect_3d/compress_to=1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://3ee7ii2w44gd" | ||
path="res://.godot/imported/lens_aura.png-e27f19e14a0272728e7b44bd21dd8800.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://addons/post_processing/assets/lens_aura.png" | ||
dest_files=["res://.godot/imported/lens_aura.png-e27f19e14a0272728e7b44bd21dd8800.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/high_quality=false | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/normal_map=0 | ||
compress/channel_pack=0 | ||
mipmaps/generate=false | ||
mipmaps/limit=-1 | ||
roughness/mode=0 | ||
roughness/src_normal="" | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/normal_map_invert_y=false | ||
process/hdr_as_srgb=false | ||
process/hdr_clamp_exposure=false | ||
process/size_limit=0 | ||
detect_3d/compress_to=1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://dhlg318yf5dvo" | ||
path="res://.godot/imported/lens_divine.png-f89592ebc844543be1487a3ee051ee93.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://addons/post_processing/assets/lens_divine.png" | ||
dest_files=["res://.godot/imported/lens_divine.png-f89592ebc844543be1487a3ee051ee93.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/high_quality=false | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/normal_map=0 | ||
compress/channel_pack=0 | ||
mipmaps/generate=false | ||
mipmaps/limit=-1 | ||
roughness/mode=0 | ||
roughness/src_normal="" | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/normal_map_invert_y=false | ||
process/hdr_as_srgb=false | ||
process/hdr_clamp_exposure=false | ||
process/size_limit=0 | ||
detect_3d/compress_to=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
extends CanvasLayer | ||
|
||
# In your main scene script | ||
|
||
var camera = null | ||
var light_source = null | ||
var light_pos_world = null | ||
var screen_pos = null | ||
var light_pos_screen = null | ||
var material = null | ||
|
||
func _ready(): | ||
# Get camera node automatically based on type | ||
camera = get_tree().get_root().find_child("Camera3D", true, true) # Searches entire scene tree | ||
if not camera: | ||
print("Warning: No Camera node found in scene!") | ||
return | ||
|
||
# Get first light node (adjust if you need a specific light) | ||
light_source = get_tree().get_root().find_child("Light3D", true, true) # Searches entire scene tree | ||
if not light_source: | ||
print("Warning: No Light node found in scene!") | ||
return | ||
|
||
func _physics_process(delta): | ||
if not camera or not light_source: | ||
return # Skip if camera or light not found | ||
|
||
# Calculate and set light position as before | ||
light_pos_world = light_source.global_transform.origin | ||
screen_pos = camera.project_world_ray(light_pos_world) | ||
light_pos_screen = screen_pos / screen_pos.w | ||
|
||
material = $data.material | ||
material.set_uniform("LightPositionWorldSpace", light_pos_screen) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[gd_scene load_steps=3 format=3 uid="uid://mfrkdk8k6ojn"] | ||
|
||
[ext_resource type="Shader" path="res://addons/post_processing/shaders/CRT.gdshader" id="1_7bog5"] | ||
|
||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ju4eq"] | ||
shader = ExtResource("1_7bog5") | ||
shader_parameter/overlay = false | ||
shader_parameter/scanlines_opacity = 0.4 | ||
shader_parameter/scanlines_width = 0.25 | ||
shader_parameter/grille_opacity = 0.3 | ||
shader_parameter/resolution = Vector2(640, 480) | ||
shader_parameter/pixelate = true | ||
shader_parameter/roll = true | ||
shader_parameter/roll_speed = 8.0 | ||
shader_parameter/roll_size = 15.0 | ||
shader_parameter/roll_variation = 1.8 | ||
shader_parameter/distort_intensity = 0.05 | ||
shader_parameter/noise_opacity = 0.4 | ||
shader_parameter/noise_speed = 5.0 | ||
shader_parameter/static_noise_intensity = 0.06 | ||
shader_parameter/aberration = 0.03 | ||
shader_parameter/brightness = 1.4 | ||
shader_parameter/discolor = true | ||
shader_parameter/warp_amount = 1.0 | ||
shader_parameter/clip_warp = false | ||
shader_parameter/vignette_intensity = 0.4 | ||
shader_parameter/vignette_opacity = 0.5 | ||
|
||
[node name="CRT" type="CanvasLayer"] | ||
layer = 103 | ||
visible = false | ||
|
||
[node name="data" type="ColorRect" parent="."] | ||
material = SubResource("ShaderMaterial_ju4eq") | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
mouse_filter = 2 |
20 changes: 20 additions & 0 deletions
20
addons/post_processing/node/children/ChromaticAberration.tscn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[gd_scene load_steps=3 format=3 uid="uid://ccxkudlhbgmv7"] | ||
|
||
[ext_resource type="Shader" path="res://addons/post_processing/shaders/chromatic.gdshader" id="1_qxjen"] | ||
|
||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ke5y5"] | ||
shader = ExtResource("1_qxjen") | ||
shader_parameter/offset = 5.23 | ||
|
||
[node name="ChromaticAberration" type="CanvasLayer"] | ||
visible = false | ||
layer = 102 | ||
|
||
[node name="data" type="ColorRect" parent="."] | ||
material = SubResource("ShaderMaterial_ke5y5") | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
mouse_filter = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[gd_scene load_steps=3 format=3 uid="uid://ctdvjs742haos"] | ||
|
||
[ext_resource type="Shader" path="res://addons/post_processing/shaders/analog_monitor.gdshader" id="1_yo3om"] | ||
|
||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_s1g6v"] | ||
shader = ExtResource("1_yo3om") | ||
shader_parameter/res = Vector2(256, 256) | ||
shader_parameter/mask_type = 0 | ||
shader_parameter/bloom_type = 1 | ||
shader_parameter/hardScan = -8.0 | ||
shader_parameter/hardPix = -2.0 | ||
shader_parameter/hardBloomScan = -2.0 | ||
shader_parameter/hardBloomPix = -1.5 | ||
shader_parameter/bloomAmount = 2.12 | ||
shader_parameter/warp = Vector2(64, 24) | ||
shader_parameter/maskDark = 0.5 | ||
shader_parameter/maskLight = 1.5 | ||
|
||
[node name="AnalogMonitor" type="CanvasLayer"] | ||
visible = false | ||
|
||
[node name="data" type="ColorRect" parent="."] | ||
material = SubResource("ShaderMaterial_s1g6v") | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
mouse_filter = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[gd_scene load_steps=4 format=3 uid="uid://k8tnsut5pohj"] | ||
|
||
[ext_resource type="Shader" path="res://addons/post_processing/shaders/ascii.gdshader" id="1_bp3vh"] | ||
[ext_resource type="Texture2D" uid="uid://5rj5tlylm7bt" path="res://addons/post_processing/assets/ascii.png" id="2_qs7p5"] | ||
|
||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ppj3i"] | ||
shader = ExtResource("1_bp3vh") | ||
shader_parameter/ascii_size = Vector2(5, 10) | ||
shader_parameter/available_columns = 10 | ||
shader_parameter/max_columns = 16 | ||
shader_parameter/ascii_tex = ExtResource("2_qs7p5") | ||
|
||
[node name="Ascii" type="CanvasLayer"] | ||
layer = 99 | ||
visible = false | ||
|
||
[node name="data" type="ColorRect" parent="."] | ||
material = SubResource("ShaderMaterial_ppj3i") | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
mouse_filter = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[gd_scene load_steps=3 format=3 uid="uid://dvpfe511myfg5"] | ||
|
||
[ext_resource type="Shader" path="res://addons/post_processing/shaders/bloom.gdshader" id="1_qyxdw"] | ||
|
||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_qv2yl"] | ||
shader = ExtResource("1_qyxdw") | ||
shader_parameter/BlurAmount = null | ||
shader_parameter/FlareThreshold = null | ||
shader_parameter/Flares = null | ||
shader_parameter/FlareSpacing = null | ||
shader_parameter/Intensity = null | ||
shader_parameter/Saturation_ = null | ||
shader_parameter/FalloffStart = null | ||
shader_parameter/FalloffEnd = null | ||
|
||
[node name="Bloom" type="CanvasLayer"] | ||
|
||
[node name="SubViewportContainer" type="SubViewportContainer" parent="."] | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
stretch = true | ||
|
||
[node name="SubViewport" type="SubViewport" parent="SubViewportContainer"] | ||
handle_input_locally = false | ||
size = Vector2i(1152, 648) | ||
render_target_update_mode = 4 | ||
|
||
[node name="TextureRect" type="ColorRect" parent="."] | ||
z_index = 105 | ||
material = SubResource("ShaderMaterial_qv2yl") | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[gd_scene load_steps=3 format=3 uid="uid://cxsuld87nxd0v"] | ||
|
||
[ext_resource type="Shader" path="res://addons/post_processing/shaders/blur.gdshader" id="1_6v1pv"] | ||
|
||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_efbmf"] | ||
shader = ExtResource("1_6v1pv") | ||
shader_parameter/lod = 4.615 | ||
|
||
[node name="Blur" type="CanvasLayer"] | ||
layer = 101 | ||
visible = false | ||
|
||
[node name="data" type="ColorRect" parent="."] | ||
material = SubResource("ShaderMaterial_efbmf") | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
mouse_filter = 2 |
Oops, something went wrong.