feat: new models, fixed popup containers
This commit is contained in:
parent
fc982e3db6
commit
77b1a08234
51 changed files with 1116 additions and 170 deletions
|
|
@ -5,13 +5,19 @@ render_mode cull_back, blend_mix;
|
|||
uniform vec4 albedo_color: source_color;
|
||||
uniform float fill: hint_range(0.0, 1.0, 0.01) = 0.;
|
||||
uniform float wave_intensity: hint_range(0.0, 1.0, 0.01) = 0.;
|
||||
uniform bool remap_for_mesh;
|
||||
|
||||
const float MAX_AMPLITUDE = 0.1;
|
||||
const float MAX_SPEED = 2.;
|
||||
|
||||
void vertex() {
|
||||
if (VERTEX.y > 0.) {
|
||||
VERTEX.y *= (fill - 0.5) * 2.;
|
||||
if (remap_for_mesh) {
|
||||
VERTEX.y *= fill;
|
||||
}
|
||||
else {
|
||||
VERTEX.y *= (fill - 0.5) * 2.;
|
||||
}
|
||||
VERTEX.y += sin((TIME+VERTEX.x+VERTEX.z)*wave_intensity*MAX_SPEED) * MAX_AMPLITUDE * wave_intensity;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue