Made planet shader 3d, added sprite to selected point, fixed collision stress calculation
This commit is contained in:
parent
930ed42150
commit
a780ef479d
5 changed files with 82 additions and 54 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue