Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Make Your Own Shaders Wiki › Guides › Understanding Shader File Structure

Understanding Shader File Structure

What Each File Does

Before writing any code, you need to understand the folder layout. The mod organizes shader files by purpose: vertex shaders handle geometry and positioning, fragment shaders control color and lighting, and utility files store shared code.

Exploring Your Shader Pack Folder

Open your shader pack directory and locate the main files. Each one has a specific job—some process lighting calculations, others handle shadows, and some manage how light bounces around your world. The mod's documentation explains what each file controls.

Start by reading through one simple file without editing it. Look for comments (lines starting with //) that explain what the code does. This builds your mental model of how shaders work.

Next Steps

Once you recognize which file controls which visual feature, you're ready to make your first edit. The video guides walk you through modifying one file at a time, showing you exactly how changes affect gameplay. This prevents overwhelming yourself with the entire codebase at once.