← All resources

Your First Shader | Unity Shader Code Basics 01

Auto-discovered

Video / channel Beginner

Daniel Ilett

Visit resource ↗

Description

Your First Shader | Unity Shader Code Basics 01 is a beginner YouTube tutorial by Daniel Ilett that writes a Unity 6 URP unlit Hello World shader from an empty file in ShaderLab and HLSL.

It covers creating an Unlit Shader asset, replacing the outdated built-in template, ShaderLab Properties, SubShader tags, and Pass blocks, a Color material property, HLSLPROGRAM structure, Core.hlsl, appdata and v2f with POSITION and SV_POSITION, TransformObjectToHClip, and a fragment that returns the base color on a mesh.

It is for absolute beginners who have never written ShaderLab or HLSL and prefer code over Shader Graph. It assumes a fresh Unity 6 URP project and tolerance for boilerplate. No prior shader math beyond RGBA floats is required.

The lesson is a free YouTube video with live coding. It is episode one of a Shader Code Basics series, with a follow-up promised on textured meshes.

It is useful as a grounded first step into Unity code shaders, clarifying how ShaderLab feeds materials while HLSL runs the vertex and fragment stages for a solid color.