Daniel Ilett
  • 🎨 Work with me
  • ✨ Unity Assets
    • Retro Shaders Pro

    • Snapshot Shaders Pro

    • Snapshot Shaders 2

    • Hologram Shaders Pro

    • Toon Shaders Pro

    • Shader Toolbox

    • Blur Shaders Pro
  • 🌟 Godot Assets
    • Retro Shaders Pro

    • Hologram Shaders Pro
  • 🎮 Toys
    • Game Generators
  • Toggle light/dark theme

All posts in hlsl-basics

Physically Based Rendering | Unity Shader Code Basics 07
Physically Based Rendering | Unity Shader Code Basics 07

PBR lets us describe objects using their physical properties - albedo, metallic, smoothness, height, etc. - and the light model works out how the lighting should look.

April 28, 2026   •    hlsl-basics
Lighting & Shadows | Unity Shader Code Basics 06
Lighting & Shadows | Unity Shader Code Basics 06

We can loop over each light to apply diffuse, specular, Fresnel, and ambient lighting to objects. The ShadowCaster pass lets us block lighting from reaching other objects.

April 17, 2026   •    hlsl-basics
Vertex Shaders & Tessellation | Unity Shader Code Basics 05
Vertex Shaders & Tessellation | Unity Shader Code Basics 05

We can physically move vertices in the vertex shader to create wave effects. If your meshes are too low-poly, you can subdivide them with tessellation to improve the fidelity.

January 3, 2026   •    hlsl-basics
The Depth Buffer | Unity Shader Code Basics 04
The Depth Buffer | Unity Shader Code Basics 04

Unity uses a depth buffer to effectively sort objects in a per-pixel way. We can read depth information to create silhouettes or use a different depth test for an x-ray effect.

January 2, 2026   •    hlsl-basics
Transparency | Unity Shader Code Basics 03
Transparency | Unity Shader Code Basics 03

Transparent objects need to be drawn differently to opaque objects, since their color gets blended with the existing screen contents, with many possible blend modes.

January 1, 2026   •    hlsl-basics
Textures & UVs | Unity Shader Code Basics 02
Textures & UVs | Unity Shader Code Basics 02

Textures give you a lot more control over a mesh's surface appearance than just a base color alone could ever do. Learn all about texture mapping in this tutorial.

October 16, 2025   •    hlsl-basics
Your First Shader | Unity Shader Code Basics 01
Your First Shader | Unity Shader Code Basics 01

There are still things that Shader Graph can't do, but HLSL shader code gives you total control over visuals. For the start of this new series, learn how to make an unlit color shader!

October 15, 2025   •    hlsl-basics
YouTube
GitHub
Twitter
Reddit
itch.io
Unity
G Gumroad

© Daniel Ilett  •  2026