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
/** | |
* Replace a color by another one. | |
* License: CC0 | |
* https://creativecommons.org/publicdomain/zero/1.0/ | |
*/ | |
shader_type canvas_item; | |
uniform vec4 remove_color: hint_color; |
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
/** | |
* Crop a texture. | |
* License: CC0 | |
* https://creativecommons.org/publicdomain/zero/1.0/ | |
*/ | |
shader_type canvas_item; | |
uniform float crop_left:hint_range(0.0,1.0,0.01) = 0.0; | |
uniform float crop_right:hint_range(0.0,1.0,0.01) = 0.5; | |
uniform float crop_top:hint_range(0.0,1.0,0.01) = 0.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
/** | |
* Shadow 2D. | |
* License: CC0 | |
* https://creativecommons.org/publicdomain/zero/1.0/ | |
*/ | |
shader_type canvas_item; | |
render_mode blend_mix; | |
uniform vec2 deform = vec2(2.0, 2.0); | |
uniform vec2 offset = vec2(0.0, 0.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
/** | |
* hq4x filter. | |
* https://www.shadertoy.com/view/MslGRS | |
* https://github.com/libretro/common-shaders/blob/master/scalehq/shaders/4xScaleHQ.cg | |
*/ | |
shader_type canvas_item; | |
uniform bool enabled = true; | |
void fragment(){ |
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
/** | |
* hq2x and hq4x filter. | |
* https://www.shadertoy.com/view/MslGRS | |
* https://github.com/libretro/common-shaders/blob/master/scalehq/shaders/4xScaleHQ.cg | |
* https://github.com/libretro/common-shaders/blob/master/scalehq/shaders/2xScaleHQ.cg | |
*/ | |
shader_type canvas_item; | |
uniform int type = 0; // 0:none, 1:hq2x, 2:hq4x |
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
/** | |
* Fix Godot transparent viewport. | |
* License: CC0 | |
* https://creativecommons.org/publicdomain/zero/1.0/ | |
*/ | |
shader_type canvas_item; | |
void fragment(){ | |
vec4 color = texture(TEXTURE,UV); | |
if (color.a!=0.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
### Use example | |
const PROJECT_ID := "<your project ID>" | |
const FIRESTORE_URL := "https://firestore.googleapis.com/v1/projects/%s/databases/(default)/documents/" % PROJECT_ID | |
func get_document(path: String) -> void: | |
var url := FIRESTORE_URL + path | |
http.request(url) | |
func _on_http_request_completed(result: int, response_code: int, headers: PoolStringArray, body: PoolByteArray) -> void: |
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
@echo off | |
setlocal | |
set DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1=1 | |
start %~n0.exe | |
pause > nul | |
endlocal |