3dexperiments/assets/shaders/planet.fs

14 lines
196 B
Forth
Raw Permalink Normal View History

2020-03-31 13:32:59 +00:00
precision mediump float;
uniform float g;
uniform float g2;
varying vec3 c0;
varying vec3 c1;
varying vec3 vColor;
2020-03-31 13:32:59 +00:00
void main (void) {
gl_FragColor = vec4(c1, 1.0) + vec4(vColor * c0, 1.0);
2020-03-31 13:32:59 +00:00
}