-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Qubus0/shader_editor_color_preview
Add color preview to shader editor
- Loading branch information
Showing
5 changed files
with
70 additions
and
21 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
shader_type canvas_item; | ||
|
||
// supports shader uniforms with type hint source_color | ||
uniform vec4 input_color : source_color = vec4(0.0952, 0.8355, 0.9494, 1); | ||
uniform vec4 transparent_color : source_color = vec4(0.95, 0.24, 0.52, 0.6); | ||
|
||
// and any vec4 as color with this comment in front | ||
/* source_color */ uniform vec4 not_type_hinted = vec4(1, 0.8549, 0.102, 1); | ||
|
||
// Color.BLACK <- technically you can also view these | ||
|
||
|
||
// picking and selecting also works the same | ||
uniform vec4 picker_color : source_color = vec4(0.9049, 0.5072, 0.0389, 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