Developer Diary - Shader and Pixelart Technology

My name is Florian and i'm one part of TwoBitKids. I'm coding the game, create gameplay mechanics and do parts of the level design. I code games for over 10 years now (i.e. Ultima Iris, an 3D client for Ultima Online).

Today I want to describe to you how we combine pixelart with shader technology to change scene ambience.

2D equals 3D ?

All games use either OpenGL or Direct3D and these APIs are clearly made for 3D. 2D is only a complicated abstraction and reduction of these APIs.

That's why in my opinion all current video games are 3D games and can use shaders.

There are 3 types of shaders:
  1. Pixel Shader attempt to manipulate the color of each pixel of a given texture. They are used to define the material of the surface (reflection, refraction).
  2. Vertex Shader attempt to manipulate the vertices. They are mostly used for 3D to transform your polygons and meshes.
  3. Geometry Shaders are processed after vertex shaders and are used for rendering hair or shadow volumes.
Most 2D games only use pixel shaders, because the vertices or geometry is fixed to stick onto the pixel grid. When 2D games use pixel shaders, they only try to change the material (color) of their sprites. When speaking of changing the color of a pixel I not only mean red, blue and green, but also the whole ambience of a scene.
Here steps in: Color Grading.

Color Grading variations with random LUT Tables

Color Grading

Color Grading is a technique used in movies for changing the ambience of scenes. It's mostly used for changing Brightness, Saturation or Contrast. But you can also change the curves of bright and dark areas and do selective changes to colors.

In Aeon of Sands we use color grading to change the ambience of the game in certain scenes or situations like day, night, combat or with spell effects.

Here you can see how a scene can change its mood from day to sunset to night.


To use color grading in video games, you need a color grading shader and a so called LUT table (3D color lookup table). In the pictures above, the only thing we have changed was background and the lut table.

Here is the standard 16bit lut table...

and a modified one.

If you want to get informed about Aeon of Sands news, subscribe to our mailinglist.

 SignUp for Updates & Release News

If you want to try color-grading for yourself, read the following references:


Copyright © 2014 Two Bits Kid. All rights reserved.
Disclaimer | Impressum | Home