Difference between revisions of "PixelEffect"

(Created page with "{{newin|0.8.0|080|type=type}} A PixelEffect is used for hardware-accelerated pixel manipulation, also known as pixel shading. These effects are written in a language called G...")
 
m
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{newin|[[0.8.0]]|080|type=type}}
+
{{newinoldin|[[0.8.0]]|080|[[0.9.0]]|090|type=type|text=It has been renamed to [[Shader]]}}
A PixelEffect is used for hardware-accelerated pixel manipulation, also known as pixel shading. These effects are written in a language called GLSL (OpenGL Shading Language) and are used for a variety of nifty eye candies.
+
A PixelEffect is used for advanced hardware-accelerated pixel manipulation. These effects are written in a language based on GLSL (OpenGL Shading Language) with a few things simplified for easier coding.
  
Some examples of possible effects include HDR/bloom, motion blur, grayscale/invert/sepia/any kind of color effect, reflection/refraction, distortions, and much more!
+
Potential uses for pixel effects include HDR/bloom, motion blur, grayscale/invert/sepia/any kind of color effect, reflection/refraction, distortions, and much more!
  
 
== Constructors ==
 
== Constructors ==
Line 8: Line 8:
 
| headers=hide
 
| headers=hide
 
| default=None.
 
| default=None.
 +
| format=template
 +
| template=ListingFields
 +
| introtemplate=ListingIntro
 +
| outrotemplate=ListingOutro
 
| ?Description
 
| ?Description
 +
| ?PrettySince
 +
| ?PrettyRemoved
 
}}
 
}}
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::PixelEffect||Object]] [[Since::<080]]
+
{{#ask: [[Category:Functions]] [[parent::PixelEffect||Object]] [[Since::080]]
 
| headers=hide
 
| headers=hide
 +
| format=template
 +
| template=ListingFields
 +
| introtemplate=ListingIntro
 +
| outrotemplate=ListingOutro
 
| ?Description
 
| ?Description
 +
| ?PrettySince
 +
| ?PrettyRemoved
 
}}
 
}}
 
== Supertypes ==
 
== Supertypes ==
Line 19: Line 31:
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
* [[love.graphics.newPixelEffect]]
 
 
* [[love.graphics.setPixelEffect]]
 
* [[love.graphics.setPixelEffect]]
 
[[Category:Types]]
 
[[Category:Types]]

Latest revision as of 18:16, 27 December 2015

Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0
It has been renamed to Shader.

A PixelEffect is used for advanced hardware-accelerated pixel 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 pixel effects include HDR/bloom, motion blur, grayscale/invert/sepia/any kind of color effect, reflection/refraction, distortions, and much more!

Constructors

love.graphics.newPixelEffect Creates a new PixelEffect. Added since 0.8.0 Removed in 0.9.0

Functions

PixelEffect:getWarnings Gets warning messages (if any). Added since 0.8.0 Removed in 0.9.0
PixelEffect:send Sends one or more values to the pixel effect. Added since 0.8.0 Removed in 0.9.0

Supertypes

See Also

Other Languages