Use VANTA.CLOUDS2 for clouds2 effect
This commit is contained in:
1 parent
9ebbff08f1
commit
fdcbd07116
1 file changed
+3
-6
+3
-6
@@ -338,7 +338,7 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.clouds2.min.js"></script>
|
||||
<script>
|
||||
var effect = VANTA.CLOUDS({
|
||||
var effect = (VANTA.CLOUDS2 || VANTA.CLOUDS)({
|
||||
el: "#vanta",
|
||||
mouseControls: false,
|
||||
touchControls: false,
|
||||
@@ -350,12 +350,9 @@
|
||||
speed: 0.4,
|
||||
backgroundColor: 0x0,
|
||||
backgroundAlpha: 0,
|
||||
skyColor: 0x3a4458,
|
||||
skyColor: 0x1c1b1f,
|
||||
cloudColor: 0x6d6a63,
|
||||
cloudShadowColor: 0x2a3450,
|
||||
sunColor: 0xf3ede1,
|
||||
sunGlareColor: 0xe6dfd1,
|
||||
sunlightColor: 0xf3ede1
|
||||
lightColor: 0xf3ede1
|
||||
}) || { setOptions: function() {} };
|
||||
|
||||
function hexToRgb(h) {
|
||||
|
||||
Reference in new issue
Block a user