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! Here is a collection of basic shaders and good starting point to learn: https://github.com/vrld/shine

Constructors

love.graphics.newShader Creates a new Shader. 0.9.0

Functions

Object:type Gets the type of the object as a string.
Object:typeOf Checks whether an object is of a certain type.
Shader:getExternVariable Gets information about an 'extern' ('uniform') variable in the Shader. 0.9.2
Shader:getWarnings Gets warning and error messages (if any). 0.9.0
Shader:send Sends one or more values to the shader. 0.9.0
Shader:sendColor Sends one or more colors to the shader. 0.10.0

Supertypes

See Also

Shader:sendColor

Shader:sendColor Available since LÖVE 0.10.0 This function is not supported in earlier versions. Sends one or more colors to a special (extern

2017-03-21 15:52:51
Shader:getWarnings

Shader:getWarnings Available since LÖVE 0.9.0 It has been renamed from

2017-03-21 15:52:50
Shader:getExternVariable

Shader:getExternVariable Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets information about an 'extern' ('uniform')

2017-03-21 15:52:50
Shader:send

Shader:send Available since LÖVE 0.9.0 It has been renamed from

2017-03-21 15:52:51