CodeBlanks Logo Icon CodeBlanks

Summary - Material

Reinforce material usage with a summary task.

Summary: Material System

In this module, you mastered all pillars of the PBR material workflow. While a Shader directs GPU operations, Albedo sets base color, Metallic dictates conductivity, Smoothness controls gloss, and Normal map simulates micro-relief.

// PBR Material summary structure:
// Material -> Albedo (Color/Texture) + Metallic + Smoothness + Normal Map
// MeshRenderer.material = customMaterial

Synthesized materials bind to 3D meshes via MeshRenderer to produce compelling visuals.

Practice Print complete material profile

Define albedo ("Red"), metallic ("1.0"), and smoothness ("0.7"). Print Material Albedo: Red | Metallic: 1.0 | Smoothness: 0.7 to the console.

Starter code

Player.cs
using System;

class Program
{
    static void Main()
    {
        // albedo, metallic ve smoothness değerlerini tanımlayıp yazdır
    }
}

Sample solution

Player.cs
using System;

class Program
{
    static void Main()
    {
        string albedo = "Red";
        string metallic = "1.0";
        string smoothness = "0.7";
        Console.WriteLine("Material Albedo: " + albedo + " | Metallic: " + metallic + " | Smoothness: " + smoothness);
    }
}

Expected output

Material Albedo: Red | Metallic: 1.0 | Smoothness: 0.7

Questions and answers

Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.

1 What settings should be configured on a material to produce a polished and shiny red metal?

  • Albedo black, Metallic 0.0, Normal Map disabled
  • Albedo red, Metallic 1.0, Smoothness high (e.g. 0.9) Correct answer
  • Albedo transparent, MeshRenderer disabled, useGravity true
  • Albedo blue, Metallic 0.0, Smoothness 0.0

Explanation: Red color comes from Albedo, metallic nature from Metallic = 1.0, and high gloss from high Smoothness.

2 Assign shared material

Question
renderer.____ = baseMat;
Answer
renderer.sharedMaterial = baseMat;

Explanation: The sharedMaterial property is used to bind the original project material asset without instantiating copies.

3 Material summary concepts

Term Meaning
Material Surface visuals and light response
Albedo Pure base color channel without shadow
Metallic PBR value of surface metallic ratio
Normal Map Map adding fake relief to surfaces

All lessons in Intermediate