Skip to content

Instantly share code, notes, and snippets.

View andrevenancio's full-sized avatar

André Venâncio andrevenancio

View GitHub Profile
@andrevenancio
andrevenancio / SkyDomeShader.coffee
Last active October 29, 2015 23:40
Skydome shader for integrating with THREE.ShaderMaterial
# clouds animation based on: https://www.shadertoy.com/view/XsjSRt
THREE.SkyDomeShader = {
uniforms:
offset: { type: 'f', value: -100 }
exponent: { type: 'f', value: 0.64 }
top_color: { type: 'c', value: new THREE.Color(0x99ccff) }
bottom_color: { type: 'c', value: new THREE.Color(0x719cc8) }