Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

thedemons/Shader-Tutorial-For-Direct3D9

Repository files navigation

HLSL Shaders Tutorial for Direct3D 9

Introduction

After weeks of desperate searching on the internet for proper documentation on how to work with shaders in Direct3D 9, I finally grasped the basic concept of it and decided to make a short beginner-friendly tutorial.

The problem

DX9 is old, to say the least, but it is also the easiest starting point if you want to learn DX11 or DX12.
There are a few good tutorials out there on how to draw your first triangle, load your first mesh, but I've found none talking about shaders, which is a pretty important part if you wanted to make eye-candy effects or optimize performance.
Even Microsoft's documentation on how to load a shader is very-very confusing.

The goal of this tutorial

This tutorial aims for a fast and easy way to learn shaders. The goal is to provide the shortest, most intuitive explanation of shaders. It won't teach you in-depth advanced techniques but rather gives you a basic concept of how everything works.

Table of Contents

About

A brief tutorial on how to implement shaders in Direct3D9

Topics

Resources

Stars

Watchers

Forks

Morty Proxy This is a proxified and sanitized view of the page, visit original site.