summaryrefslogtreecommitdiffhomepage
path: root/README.mdown
blob: cfc7a257b7d3d95b8e1153b661d5cc73ab5c6a9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Zig CHIP-8

My in progress emulator(interpreter?) project for learning Zig :^)

Currently it is only has enough instructions to run the basic IBM example. I got distracted making shaders in GLSL. I plan to eventually return to writing the core functionality as well as adding a web export.

## Shaders

Here is an image showing each step of the shader process. The first image(top left) is using the default Raylib shader, here all the pixels are simply rendered as white squares with no gaps.  

The first custom shader(top right image) I implemented is a "pixalizer" shader where I split up each individual square "pixel" into a group of 3 separated rectangles.

In the second shader(bottom left) I implemented I colour each of these rectangles alternating between red, green, and blue.

Finally in the last shader(bottom right image) I created a screen warping effect to complete the effect of appearing like a CRT screen.

![Shaders](https://github.com/realtradam/zig-chip-8/blob/master/shadersample.png?raw=true)