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
/* Fast antialiasing shader by G.Rebord (mod by Xynon for Godot) | |
Based on FXAA3 CONSOLE version by TIMOTHY LOTTES | |
------------------------------------------------------------------------------ | |
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR | |
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
============================================================================*/ |
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
shader_type spatial; | |
render_mode unshaded; | |
void vertex() { | |
POSITION = vec4(VERTEX, 1.0); | |
} | |
uniform sampler2D BackBufferTex : hint_screen_texture, repeat_disable, filter_nearest; | |
uniform sampler2D DepthBufferTex : source_color, hint_depth_texture, filter_nearest; |
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
shader_type spatial; | |
render_mode unshaded, depth_prepass_alpha; | |
void vertex() { | |
POSITION = vec4(VERTEX, 1.0); | |
} | |
uniform sampler2D BackBufferTex : hint_screen_texture, repeat_disable, filter_nearest; | |
uniform sampler2D DepthBufferTex : hint_depth_texture, repeat_disable, filter_nearest; |