SimpleGodotCRTShader

所属分类:游戏
开发工具:GLSL
文件大小:0KB
下载次数:0
上传日期:2022-09-25 01:00:54
上 传 者sh-1993
说明:  模拟CRT显示器的简单Godot着色器
(A simple Godot shader that simulates CRT Displays)

文件列表:
Character.gd (418, 2022-09-24)
LICENSE (1089, 2022-09-24)
ShaderTestScreen.tscn (6047, 2022-09-24)
addons/ (0, 2022-09-24)
addons/crt_shader/ (0, 2022-09-24)
addons/crt_shader/CRTCanvasLayer.tscn (11804, 2022-09-24)
addons/crt_shader/CRTFrame.png (17559, 2022-09-24)
addons/crt_shader/CRTFrame.png.import (704, 2022-09-24)
addons/crt_shader/CRTShader.gd (612, 2022-09-24)
addons/crt_shader/CRTShader.shader (1695, 2022-09-24)
addons/crt_shader/ShaderScreen.material (392, 2022-09-24)
addons/crt_shader/crt_shader.gd (81, 2022-09-24)
addons/crt_shader/plugin.cfg (132, 2022-09-24)
character.png (3657, 2022-09-24)
character.png.import (689, 2022-09-24)
default_env.tres (543, 2022-09-24)
icon.png (3498, 2022-09-24)
icon.png.import (674, 2022-09-24)
project.godot (593, 2022-09-24)
sample.png (254953, 2022-09-24)
sample.png.import (680, 2022-09-24)
shaderIcon.png (273950, 2022-09-24)
shaderIcon.png.import (692, 2022-09-24)
white.png (174, 2022-09-24)
white.png.import (677, 2022-09-24)
withshader.png (789996, 2022-09-24)
withshader.png.import (692, 2022-09-24)

# SimpleGodotCRTShader *For more addons, check [my GitHub](https://github.com/henriquelalves) and [my itch.io](https://perons.itch.io/) page.* A simple Godot shader that simulates CRT Displays. ![Without Shader](sample.png) ![With Shader](withshader.png) ## How to install You can copy simply copy the CRTShader.shader A tutorial on how to install the Shader on Godot 2.x (YouTube): [https://www.youtube.com/watch?v=ydrC-3Uy-aY&feature=youtu.be](https://www.youtube.com/watch?v=ydrC-3Uy-aY&feature=youtu.be) ## For Godot 3.x You can simply copy the CRTShader.shader code to use on your project; to set it up, just use it in a an TextureRect with a white texture. Your game must be running 'under' the node for the CRT Shader to have any effect. You can modify the values of the Shader using the Uniform Variables. ## How the Shader works This Shader is made of 3 main components: * Distortion: It is the effect that causes the '3D'-like monitor effect. * Color Bleeding: Creates a small 'color bleeding' on the Red and Blue channel of close pixels. * Scanlines: Creates a strip of black, alpha lines that moves constantly on the screen. All the effects have Uniform variables, so they can be controlled without changing the code. The effects are based on these articles: * Distortion: http://www.geeks3d.com/20140213/glsl-shader-library-fish-eye-and-dome-and-barrel-distortion-post-processing-filters/2/ * Color Bleeding and Scanlines: http://www.magneticrealms.com/posts/2014/02/03/a-crt-filter-without-shaders/ ## Credits The screen sample was made by 'ansimuz' - the art is in public domain (CC0), and can be found in: http://opengameart.org/content/country-side-platform-tiles. Character was made by EdwoodNigma - the spritesheet is in public domain (CC0), and can be found in: https://opengameart.org/content/platformer-character-0

近期下载者

相关文件


收藏者