Skip to content

Instantly share code, notes, and snippets.

View neutrino84's full-sized avatar

Oliver Dyla neutrino84

View GitHub Profile
@neutrino84
neutrino84 / PlanetShader.frag
Last active June 17, 2022 20:45
GLSL Planet Shader
precision lowp float;
uniform sampler2D channel0;
uniform float time;
varying vec2 vTextureCoord;
// rendering params
const float sphsize = 0.8; // planet size
const float dist = 0.08; // distance for glow and distortion