Constructor


ShaderFX(shader: any, vars: any, transformed: any, priority: any)

Arguments:

shader: any
vars: any
transformed: any
priority: any




Methods


ShaderFX:draw(texture: any)

Arguments:

texture: any



Undocumented



ShaderFX.shader: any

A Shader is used for advanced hardware-accelerated pixel or vertex manipulation. These effects are written in a language based on GLSL (OpenGL Shading Language) with a few things simplified for easier coding.

Potential uses for shaders include HDR/bloom, motion blur, grayscale/invert/sepia/any kind of color effect, reflection/refraction, distortions, bump mapping, and much more! Here is a collection of basic shaders and good starting point to learn: https://github.com/vrld/moonshine

Open in Browser