Skip to content

Commit

Permalink
Vanilla: add script
Browse files Browse the repository at this point in the history
  • Loading branch information
marwie committed Jan 28, 2025
1 parent 05a4a83 commit 46f9b19
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vanilla/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {
onStart,
BloomEffect,
} from 'https://cdn.jsdelivr.net/npm/@needle-tools/engine/dist/needle-engine.min.js';

// Scripting docs: https://engine.needle.tools/docs/scripting.html

onStart((ctx) => {
const bloom = ctx.scene.addComponent(BloomEffect);
bloom.threshold.value = .5;
bloom.intensity.value = 3;
});

0 comments on commit 46f9b19

Please sign in to comment.