# Lightning VFX sample project not working on MacOS

**URL:** <https://forum.defold.com/t/lightning-vfx-sample-project-not-working-on-macos/82964>\
**Category:** Bugs\
**Created:** [June 22, 2026, 11:14am UTC](https://forum.defold.com/t/lightning-vfx-sample-project-not-working-on-macos/82964 "2026-06-22T11:14:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deurell](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/deurell/32/41252_2.png) [@deurell](https://forum.defold.com/u/deurell)\
**Post date:** [June 22, 2026, 11:14am UTC](https://forum.defold.com/t/lightning-vfx-sample-project-not-working-on-macos/82964/1 "2026-06-22T11:14:03Z")

</div>

# **Describe the bug (REQUIRED)**

Lightning VFX - sample project does not work on MacOS. Great sample so would be cool if it also ran on MacOS.

**To Reproduce (REQUIRED)**  
Download the **Lightning VFX - sample project** from Defold samples  
Run it on OSX. Press space → Renders black screen  
**Expected behaviour (REQUIRED)**  
Press space → Renders vfx

**Defold version (REQUIRED):**

- 1.12.4

**Platforms (REQUIRED):**

- Platforms: macOS
- OS: 15.7.7 (24G720)
- Device: MBP

**Suggested fix:**  
MacOS render order issue where firing bugs out and produce a black screen in the current version. The offscreen buffer now renders before the scene pass. Now works on both osx and html5.

> <https://github.com/FlexYourBrain/sample_LightningVFX/pull/5>
>
> Fixes the macOS render-order issue where firing bugs out and produce a black scr…een in the current version. The offscreen buffer now renders before the scene pass. Now works on both osx and html5.

---

<div class="post-metadata">

**Author:** ![MasterMind](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mastermind/32/31839_2.png) [@MasterMind](https://forum.defold.com/u/MasterMind)\
**Post date:** [June 22, 2026, 5:42pm UTC](https://forum.defold.com/t/lightning-vfx-sample-project-not-working-on-macos/82964/2 "2026-06-22T17:42:47Z")

</div>

Thank you for the commit, very much appreciated!

---

<div class="post-metadata">

**Author:** ![deurell](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/deurell/32/41252_2.png) [@deurell](https://forum.defold.com/u/deurell)\
**Post date:** [June 22, 2026, 6:49pm UTC](https://forum.defold.com/t/lightning-vfx-sample-project-not-working-on-macos/82964/3 "2026-06-22T18:49:57Z")

</div>

It’s me that should be thanking you. It’s a nice sample. Wanted to have a look at it, that’s why I ran in to the issue. Cheers!
