O'Reilly logo

Mastering Unity Shaders and Effects by Jamie Dean

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Creating Custom Shaders

In this chapter, we will continue with our spacecraft repair scene, adding our first custom shaders to increase the realism of the scene.

We will explore the interaction between material surfaces and our existing scene lights and how we can use the properties of Unity's physically-based shaders to improve the appearance of the game.

We will cover the following topics in this chapter:

  • Creating a basic Unity shader from scratch
  • Shader property types
  • Testing a shader in our scene
  • Incorporating Cg snippets
  • Creating and using multi-pass shaders for transparent effects
  • Creating a custom atmosphere shader

Opening the project

If you have not already done so, download and install the shaders and effects project ZIP from the Packt's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required