Initial Android commit
This commit is contained in:
commit
1e2b80c13d
8521 changed files with 231475 additions and 0 deletions
17
darkening_shader.tres
Normal file
17
darkening_shader.tres
Normal file
|
@ -0,0 +1,17 @@
|
|||
[gd_resource type="Shader" format=2]
|
||||
|
||||
[resource]
|
||||
code = "shader_type canvas_item;
|
||||
|
||||
uniform float alphaChannel=1;
|
||||
|
||||
void fragment() {
|
||||
vec4 pixelColor = texture(TEXTURE, UV);
|
||||
COLOR = texture(TEXTURE, UV);
|
||||
float newAlpha=(alphaChannel);
|
||||
vec2 fromCenterVec=UV.xy-vec2(0.5,0.5);
|
||||
if (newAlpha>=0.0f){
|
||||
COLOR.a=30.64*newAlpha*length(fromCenterVec);
|
||||
} else COLOR.a=0.0f;
|
||||
COLOR.a=alphaChannel;
|
||||
}"
|
Loading…
Add table
Add a link
Reference in a new issue