HLSL

From David's Wiki
Jump to navigation Jump to search

High Level Shading Language (HLSL) is the shading language used in DirectX. It is used in Unity and Unreal.

Usage

Notation differences between GLSL and HLSL

  • float4 instead of vec4. This is funny since OpenCL also uses float4
  • lerp instead of mix.

Pipeline

Vertex Shader

Geometry Shader

Tesselation Shader

Fragment Shader