-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,298 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,33 @@ | ||
# 3D Anti-Aliasing | ||
|
||
This project showcases the various 3D antialiasing techniques supported by Godot. | ||
|
||
- **Multisample antialiasing (MSAA):** High quality, high performance cost. | ||
Does not blur the image. | ||
- Does not affect shader-induced aliasing (such as specular aliasing) or alpha | ||
scissor materials, so these will remain aliased. | ||
- **Fast approximate antialiasing (FXAA):** Medium quality, low performance cost. | ||
Slightly blurs the image. | ||
- **Temporal antialiasing (TAA):** High-quality, low performance cost. Slightly | ||
blurs the image. | ||
- Can introduce ghosting artifacts on moving objects, especially if motion | ||
vectors are not correctly generated from a given material shader. | ||
- **Supersampling (SSAA):** The highest-quality technique, but also the most | ||
expensive. Does not blur the image. | ||
- 200% resolution scale is equivalent to 4× SSAA, as each dimension is | ||
doubled. For example, if running in a 1920×1080 window at 200% render scale, | ||
the 3D framebuffer will be 3840×2160. | ||
- SSAA can be used together with FXAA or TAA to counter the blurring added by | ||
those algorithms, while further improving antialiasing quality. | ||
|
||
Godot allows using multiple antialiasing techniques at the same time. This can | ||
be useful to obtain the best possible quality, or to find a better performance | ||
tradeoff. | ||
|
||
Language: GDScript | ||
|
||
Renderer: Vulkan Clustered | ||
|
||
## Screenshots | ||
|
||
![Screenshot](screenshots/3d_anti_aliasing.png) |
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,7 @@ | ||
# License for `checker.png` | ||
|
||
Copyright (c) 2020 Kenney | ||
|
||
Licensed under CC0 1.0 Universal. | ||
|
||
Downloaded from https://kenney.nl/assets/prototype-textures |
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,35 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://chjqieyps5n5r" | ||
path.s3tc="res://.godot/imported/checker.png-6bb199bedbd039461e4248c1d0b9691d.s3tc.ctex" | ||
path.etc2="res://.godot/imported/checker.png-6bb199bedbd039461e4248c1d0b9691d.etc2.ctex" | ||
metadata={ | ||
"imported_formats": ["s3tc", "etc2"], | ||
"vram_texture": true | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://checker.png" | ||
dest_files=["res://.godot/imported/checker.png-6bb199bedbd039461e4248c1d0b9691d.s3tc.ctex", "res://.godot/imported/checker.png-6bb199bedbd039461e4248c1d0b9691d.etc2.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=2 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
compress/channel_pack=0 | ||
mipmaps/generate=true | ||
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/size_limit=0 | ||
detect_3d/compress_to=0 |
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,7 @@ | ||
[gd_resource type="Environment" load_steps=2 format=2] | ||
|
||
[sub_resource type="Sky" id=1] | ||
|
||
[resource] | ||
background_mode = 2 | ||
sky = SubResource( 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,36 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://8c1xtc7yj6s5" | ||
path.s3tc="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.s3tc.ctex" | ||
path.etc2="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.etc2.ctex" | ||
metadata={ | ||
"imported_formats": ["s3tc", "etc2"], | ||
"vram_texture": true | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://icon.png" | ||
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.s3tc.ctex", "res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.etc2.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=2 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
compress/channel_pack=0 | ||
mipmaps/generate=true | ||
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=0 |
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,7 @@ | ||
# License for `paint.png` and `paint_normal.png` | ||
|
||
Copyright (c) 2010 johndn | ||
|
||
Licensed under CC BY 3.0 Unported. | ||
|
||
Downloaded from https://opengameart.org/content/splatter-pack |
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,33 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://ccgkupemr6e1q" | ||
path="res://.godot/imported/paint.png-26dd29729d733230544ae1ff468a1f09.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://paint.png" | ||
dest_files=["res://.godot/imported/paint.png-26dd29729d733230544ae1ff468a1f09.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/bptc_ldr=0 | ||
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/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,33 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://bm6eht0bqttpo" | ||
path="res://.godot/imported/paint_normal.png-19220cbebecc985555347664ad1f1180.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://paint_normal.png" | ||
dest_files=["res://.godot/imported/paint_normal.png-19220cbebecc985555347664ad1f1180.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/bptc_ldr=0 | ||
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/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,32 @@ | ||
; Engine configuration file. | ||
; It's best edited using the editor UI and not directly, | ||
; since the parameters that go here are not all obvious. | ||
; | ||
; Format: | ||
; [section] ; section goes between [] | ||
; param=value ; assign values to parameters | ||
|
||
config_version=5 | ||
|
||
_global_script_classes=[] | ||
_global_script_class_icons={} | ||
|
||
[application] | ||
|
||
config/name="3D Anti-Aliasing" | ||
config/description="This project showcases the various 3D antialiasing techniques supported by Godot." | ||
run/main_scene="res://test.tscn" | ||
config/icon="res://icon.png" | ||
config/features=PackedStringArray("4.0") | ||
|
||
[display] | ||
|
||
window/stretch/mode="canvas_items" | ||
window/stretch/aspect="expand" | ||
|
||
[rendering] | ||
|
||
textures/default_filters/anisotropic_filtering_level=4 | ||
textures/decals/filter=4 | ||
quality/screen_filters/msaa=3 | ||
environment/default_environment="res://default_env.tres" |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.