Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unity 5 for Android Essentials

You're reading from   Unity 5 for Android Essentials A fast-paced guide to building impressive games and applications for Android devices with Unity 5

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781784399191
Length 200 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Valera Cogut Valera Cogut
Author Profile Icon Valera Cogut
Valera Cogut
Arrow right icon
View More author details
Toc

Physically-based shaders

Unity makes it very easy to use ready shaders or write your own shaders using the Cg language or the surface shaders framework. Surface shaders are written in Cg, but they do a large amount of work that you do not have to write every time when you create a new shader. The surface shader language uses a component-based approach, or in other words a more abstract approach that facilitates writing complex shaders using a sophisticated lighting model. While using the surface shaders framework, graphics programmers do not have to keep reprocessed texture coordinates and matrix transformations. In this chapter, we will describe the different techniques and methods of writing performance-friendly shaders in great detail with nice visual quality effects used in a variety of games and applications developed throughout the world.

First, let's start with the basic principles and concepts of a shaders. A shader is a pre-compiled program for one of the number of stages...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image