shader fix?
This commit is contained in:
parent
b818576558
commit
9be6a3a169
2 changed files with 6 additions and 1 deletions
|
|
@ -17,6 +17,10 @@ void fragment() {
|
|||
if (selected)
|
||||
{
|
||||
COLOR = vec4(mix(text.rgb,HIGHLIGHT_COLOR.rgb,HIGHLIGHT_COLOR.a),text.a);
|
||||
COLOR = vec4(mix(COLOR.rgb,FLASH_COLOR.rgb,FLASH_COLOR.a*blend),COLOR.a);
|
||||
}
|
||||
else
|
||||
{
|
||||
COLOR = vec4(mix(text.rgb,FLASH_COLOR.rgb,FLASH_COLOR.a*blend),text.a);
|
||||
}
|
||||
}
|
||||
|
|
@ -10,6 +10,7 @@ void fragment() {
|
|||
{
|
||||
COLOR = vec4(mix(COLOR.rgb,HIGHLIGHT_COLOR.rgb,HIGHLIGHT_COLOR.a),COLOR.a);
|
||||
}
|
||||
|
||||
COLOR = vec4(mix(COLOR.rgb,FLASH_COLOR.rgb,FLASH_COLOR.a*blend),COLOR.a);
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue