Shader

Available since LÖVE 0.9.0
This type is not supported in earlier versions.

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!

Constructors

love.graphics.newShaderCreates a new Shader.Added since 0.9.0

Functions

Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.
Shader:getExternVariableGets information about an 'extern' ('uniform') variable in the Shader.Added since 0.9.2
Shader:getWarningsGets warning and error messages (if any).Added since 0.9.0
Shader:sendSends one or more values to the shader.Added since 0.9.0

Supertypes

See Also

Other Languages

@todo: Re-add Concept:Current when done adding child pages.

Personal tools