查看: 870|回复: 0
打印 上一主题 下一主题

[Unity 组件参考手册]着色器参考之着色器语法:Fallback

[复制链接]
.    

3797

主题

11

听众

5万

积分

首席设计师

Rank: 8Rank: 8

纳金币
32328
精华
41

活跃会员 优秀版主 荣誉管理 论坛元老

跳转到指定楼层
楼主
发表于 2013-2-25 17:21:35 |只看该作者 |倒序浏览
After all Subshaders a Fallback can be defined. It basically says "if none of subshaders can&nbsp***n on this hardware, try using the ones from another shader".Fallback定义在所有子着色器后。简单来说,它表示"如果没有任何子着色器能被运行在当前硬件上,请尝试使用降级着色器"。
[Syntax 语法]Fallback "name"
    Fallback to shader with a given name.
    退回到给定名称的着色器
Fallback Off
    Explicitly state that there is no fallback and no warning should be printed, even if no subshaders can&nbsp***n on this hardware.
    显式声明没有fallback并且不会打印任何警告,甚至没有子着色器会被运行  [Details 细节]A fallback statement has the same effect as if all subshaders from the other shader would be inserted into its place.Fallback标志的功能和将另一个着色器的所有子着色器拷贝到标志所在位置所起的功能相同
[Example 示例]Shader "example" {
// properties and subshaders here...
// 属性和子着色器在此
    Fallback "otherexample"
}
【来源:互联网】
更多精彩教程,尽在web3D纳金网http://www.narkii.com/college/
分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备08008928号

GMT+8, 2024-6-13 11:42 , Processed in 0.091258 second(s), 32 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部