码迷,mamicode.com
首页 > 编程语言 > 详细

Unity Shader 1.

时间:2015-03-01 00:17:45      阅读:255      评论:0      收藏:0      [点我收藏+]

标签:

1. 什么是Shader

All rendering in Unity is done with Shaders - small scripts that let you configure the how the graphics hardware is set up for rendering.

Shader(着色器)意即:能够使用图形硬件(GPU)来进行渲染工作的脚本。

1.1 Surface Shader

Surface Shaders are your best option if your shader need to be affected by lights and shadows.

NOTE: Do not use Surface shaders if your shader is not doing anything with lights. 

 

1.2 Vertex and Fragment Shaders

When shader doesn‘t nedd to interact with lighting or you need some very exotic effects that the surface shaders can‘t handle, and it comes with a price: you have to write more code and it‘s harder to make it interact with lighting.

 

1.3 Fixed function Shaders

This type shaders need to be written for old hardware that doesn‘t support programmable shaders.

 2. Materials and Shaders

Shaders contain code that define what kind of properties and assets to use. Materials allow you to adjust properties and assign assets.

 

后续补充

 

Unity Shader 1.

标签:

原文地址:http://www.cnblogs.com/x5lcfd/p/4306260.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!