Made planet shader 3d, added sprite to selected point, fixed collision stress calculation

This commit is contained in:
Aada 2026-03-03 13:38:25 +02:00
parent 930ed42150
commit a780ef479d
5 changed files with 82 additions and 54 deletions

View file

@ -4,11 +4,12 @@ render_mode unshaded;
uniform int mode = 1;
uniform sampler2D gradient;
varying vec3 world_position;
varying flat float color;
varying float color;
void vertex() {
// Called for every vertex the material is visible on.
world_position = VERTEX;
color = COLOR.r;
VERTEX += VERTEX * COLOR.q * 0.1f;
}
void fragment() {