HLSL Basics

The interresting parts of Unity shaders are written in HLSL, Microsoft’s High-Level Shading Language. In this post I will explain the basics of HLSL we'll need to program shaders. If you already know how to program in other languages, a lot of this will seem familiar to you.

This post will explain some basics, you don't have to understand everything here, the following posts will explain how to apply those basics so if you feel like this is too boring/abstract feel free to look at the other tutorials and come back when you know what this is for and you need a refresher.

To understand this you don't need any previous knowledge, that means if anything is unclear, please message me so I can clear things up and the post is easier to understand in the future.