Skip to content
JordanSantiagoYT edited this page Mar 28, 2024 · 4 revisions

Welcome to the JS Engine wiki!

Frequently Asked Questions

Q: What are all the basic shaders that come with this engine?

addGlitchEffect - Mostly used for Wavy Backgrounds. Value 1 tells the game what object to add it to. value 2 is waveSpeed, value 3 is waveFrequency, and value 4 is waveAmp

addGlitchShader - Ditto, but the waveSpeed and waveAmp values are swapped to add cross-compatibility with Denpa mods

addBloomEffect - Adds a bloom effect onto any object.

addInvertEffect - Inverts the colors of any object you add it to.

addGrayscaleEffect - Adds a grayscale filter to any object.

addGreyscaleEffect - Ditto, but incase anyone spells it as "Grey" instead

addWiggleEffect - An effect that was first seen in Thorns. Don't know what it does yet

add3DEffect - cool 3d effect that can be added onto an object

addChromaticAberrationEffect - Adds a chromatic aberration effect to any object. Value 2 tells the offset i think.

addScanlineEffect - Adds a scanline effect onto an object. Mostly used with addVCREffect to really get that old TV feel.

addGrainEffect - Adds some noise to any object(?). Value 2 tells how big the grains should be, value 3 is unknown, and value 4 is lockAlpha.

addVCREffect - A cool looking TV effect. Value 2 is the glitch factor, Value 3 tells if there should be a distortion to the object, value 4 is perspectiveOn, and value 5 is vignetteMoving. I don't quite know what these values do, like addGrainEffect

addPulseEffect - Don't know what it does, but it has the glitchEffect variables.

addDistortionEffect - Same thing as addPulseEffect, no idea what it does

clearEffects: Removes all shaders from a specified object, if it has any.

Value 1 is the same across all of these lua callbacks: They tell the game what object to add it to. You can even add these to different cameras, like the HUD!

Q: When I turn on Rendering Mode, the music isn't playing!

A: This is intentional. When using Rendering Mode, you have to use a video editor to edit the music in.