curvature.gdshader 172 B

12345678910
  1. shader_type spatial;
  2. void vertex() {
  3. VERTEX.z -= 0.6 - cos(VERTEX.x) * 0.6;
  4. VERTEX.x *= 0.8 + cos(VERTEX.x) * 0.2;
  5. }
  6. void fragment() {
  7. ALBEDO = vec3(1.0, 0.6, 0.1);
  8. }