Inline noise.png as base64 data URI to allow file:// access
This commit is contained in:
1 parent
fcf431470a
commit
a82d6cce3d
3 files changed
+15
-12
No files matched your search
+2
-1
@@ -475,6 +475,7 @@
|
||||
<script src="vendor/vanta.clouds.min.js"></script>
|
||||
<script src="vendor/vanta.clouds2.min.js"></script>
|
||||
<script>
|
||||
var noiseDataUri = 'data:image/png;base64,PLACEHOLDER';
|
||||
var effect = (VANTA.CLOUDS2 || VANTA.CLOUDS)({
|
||||
el: "#vanta",
|
||||
mouseControls: false,
|
||||
@@ -490,7 +491,7 @@ var effect = (VANTA.CLOUDS2 || VANTA.CLOUDS)({
|
||||
skyColor: 0x3a4458,
|
||||
cloudColor: 0x6d6a63,
|
||||
lightColor: 0xe6dfd1,
|
||||
texturePath: "./noise.png"
|
||||
texturePath: noiseDataUri
|
||||
}) || { setOptions: function() {} };
|
||||
|
||||
function hexToRgb(h) {
|
||||
|
||||
Reference in new issue
Block a user