Xor Shaders
  • Tutorials
  • About

#5 Blur Shaders Part 2

1/31/2015

24 Comments

 
In the last tutorial we made a radial blur shader which would blur textures around the center of the texture. Today we will be learning how to use uniforms and how to make a motion blur shader and  a gaussian blur shader. 

Uniforms


Read More
24 Comments

#5 Blur shaders part 1

1/1/2015

8 Comments

 
Make sure you check out the last tutorial. Today, you will learn how to make three blur shaders.
You will make radial blur. Motion blur and gaussian blur will be covered in part 2.

Multiple pixels

Shaders only process one pixel at a time. For bluring, we want the pixel to mix with the surrounding pixels. That is how we would achieve our blur. The easiest way to do this is to use "texture2D()" multiple times with different coordinates. We will make the radial blur first, because it's easier to understand. Radial blur is actually a form of motion blur, but in our case, motion blur will be side to side while radial will give an illusion of depth. 

Read More
8 Comments

    Tutorials

    New tutorial at GMshaders.com!

    Categories

    All
    3D
    Beginner
    Intermediate

    Archives

    October 2021
    November 2019
    January 2019
    May 2016
    August 2015
    June 2015
    March 2015
    February 2015
    January 2015
    December 2014

    RSS Feed

Powered by Create your own unique website with customizable templates.