initial setup

This commit is contained in:
2025-08-03 01:39:59 +03:00
parent 82916425c8
commit b10deff5e0
10 changed files with 113 additions and 19 deletions

View File

@@ -0,0 +1,8 @@
shader_type canvas_item;
uniform sampler2D sim_texture;
void fragment() {
vec3 c = texture(sim_texture, UV).rgb;
COLOR = vec4(c, 1.0);
}

11
shaders/dissolve.gdshader Normal file
View File

@@ -0,0 +1,11 @@
shader_type canvas_item;
uniform sampler2D sim_texture;
uniform float decay_factor;
void fragment() {
float c = texture(sim_texture, UV).r;
c = c * decay_factor;
COLOR = vec4(c, c, c, 1.0);
}

View File

@@ -0,0 +1 @@
uid://bj3v35wyy32la

View File

@@ -1,8 +0,0 @@
shader_type canvas_item;
void fragment() {
vec3 c1 = vec3(0.0, 0.4, 0.4);
vec3 c2 = vec3(0.4, 0.0, 0.4);
vec3 cout = mix(c1, c2, UV.x);
COLOR = vec4(cout, 1.0);
}

View File

@@ -1,6 +1,6 @@
shader_type canvas_item;
uniform sampler2D view_texture;
uniform sampler2D sim_texture;
void fragment() {
vec3 v = texture(view_texture, UV).rgb;