Initial Android commit
This commit is contained in:
commit
1e2b80c13d
8521 changed files with 231475 additions and 0 deletions
19
resources/materials/material_for_darkening.tres
Normal file
19
resources/materials/material_for_darkening.tres
Normal file
|
@ -0,0 +1,19 @@
|
|||
[gd_resource type="ShaderMaterial" load_steps=2 format=2]
|
||||
|
||||
[sub_resource type="Shader" id=1]
|
||||
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;
|
||||
}"
|
||||
|
||||
[resource]
|
||||
shader = SubResource( 1 )
|
||||
shader_param/alphaChannel = 0.09
|
22
resources/materials/periodic_darkening.tres
Normal file
22
resources/materials/periodic_darkening.tres
Normal file
|
@ -0,0 +1,22 @@
|
|||
[gd_resource type="ShaderMaterial" load_steps=2 format=2]
|
||||
|
||||
[sub_resource type="Shader" id=1]
|
||||
code = "shader_type canvas_item;
|
||||
|
||||
uniform float alphaChannel=0;
|
||||
|
||||
void fragment() {
|
||||
//vec4 pixelColor = texture(TEXTURE, UV);
|
||||
COLOR = texture(TEXTURE, UV);
|
||||
//float newAlpha=(alphaChannel);
|
||||
//vec2 fromCenterVec=UV.xy-vec2(0.5,0.5);
|
||||
//if (COLOR.xyz!=vec3(0f,0f,0f){
|
||||
//COLOR.a=0f;
|
||||
//}
|
||||
//COLOR.a=0f;
|
||||
//COLOR.a=alphaChannel;
|
||||
}"
|
||||
|
||||
[resource]
|
||||
shader = SubResource( 1 )
|
||||
shader_param/alphaChannel = 0.1
|
21
resources/materials/simple_darkening.tres
Normal file
21
resources/materials/simple_darkening.tres
Normal file
|
@ -0,0 +1,21 @@
|
|||
[gd_resource type="ShaderMaterial" load_steps=2 format=2]
|
||||
|
||||
[sub_resource type="Shader" id=1]
|
||||
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>=0f){
|
||||
// COLOR.a=30.64*newAlpha*length(fromCenterVec);
|
||||
//} else COLOR.a=0f;
|
||||
COLOR.a=alphaChannel;
|
||||
}"
|
||||
|
||||
[resource]
|
||||
shader = SubResource( 1 )
|
||||
shader_param/alphaChannel = 0.2
|
Loading…
Add table
Add a link
Reference in a new issue