A-Frame Three Color Gradient Shader

Modified shader from: https://github.com/zcanter/aframe-gradient-sky/blob/master/README.md

Demo

https://aframe-three-color-shader-demo.glitch.me/

view source button remix button

Usage


<script src="https://unpkg.com/@tlaukkan/aframe-three-color-gradient-shader@0.0.1/index.js"></script>

...

<a-sky geometry="primitive: sphere" material="shader: threeColorGradientShader; topColor: #D57500; middleColor: #4E6172; bottomColor: #000000;offset: 0.0"></a-sky>

Publish package

First publish


npm publish --access public

Update


npm version patch
npm publish