-
Notifications
You must be signed in to change notification settings - Fork 2
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
6 changed files
with
92 additions
and
9 deletions.
There are no files selected for viewing
Binary file removed
BIN
-519 KB
addons/discord-rpc-gd/bin/windows/~discord_game_sdk_binding_debug.dll
Binary file not shown.
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,28 @@ | ||
# Read texture from image | ||
|
||
```glsl | ||
uniform sampler2D TEXTURE; | ||
void freagment() { | ||
vec4 my_texture = texture(TEXTURE, UV); | ||
ALBEDO = my_texture.rgb; | ||
} | ||
``` | ||
|
||
## Retain color in a next pass shader | ||
|
||
```glsl | ||
uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest; | ||
void freagment() { | ||
vec4 currentColor = textureLod(screen_texture, SCREEN_UV, 0.0); | ||
ALBEDO = currentColor.rgb; | ||
} | ||
``` | ||
|
||
## Smoothstep | ||
|
||
https://godotshaders.com/snippet/interpolation/ | ||
https://thebookofshaders.com/glossary/?search=Smoothstep |
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
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
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
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