Caustics Shader

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9865
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Caustics Shader

Postby Emral » Sat Jul 27, 2019 7:10 pm

3D World style.
CAVEAT: THIS REQUIRES THERE TO BE NO SHARED COLOURS BETWEEN THE MASKED FOREGROUND AREA AND ANYTHING BEHIND IT.

A download link can be found here:
https://drive.google.com/file/d/1Bp8Mo6 ... sp=sharing

Demo:
https://www.youtube.com/watch?v=3yZSJNPa7u8
1:40

To use this library, load the sh_caustics.lua file in your luna.lua file. Make sure the other files are also in an accessible directory.

Modifications and adaptations of the code is permitted. If you use this particular code as a basis for an enhanced version of these NPCs, please give credit.

Customizable stuff:
sh_silhouette.speed: Speed of the texture.
sh_silhouette.lowpriority: Highest priority of background area.
sh_silhouette.priority: Highest priority of masked area (goes until lowpriority).

The Toad Master BUP
Goomba
Goomba
Posts: 2
Joined: Fri Jan 03, 2020 2:23 pm

Re: Caustics Shader

Postby The Toad Master BUP » Fri Jan 03, 2020 3:03 pm

Awsome!Definetly gonna use it!


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari