纳金网
标题:
Unity3d envMap shaders一个环境shaders
[打印本页]
作者:
她。
时间:
2012-7-27 16:59
标题:
Unity3d envMap shaders一个环境shaders
Shader "MY/EnvMap" {
Properties {
_EnvMap ("EnvMap", 2D) = "black" { TexGen SphereMap }
}
SubShader {
Pass {
Name "BASE"
BindChannels {
Bind "Vertex", vertex
Bind "normal", normal
}
SetTexture [_EnvMap] {
combine texture
}
}
}
Fallback off
}
Shader "MY/EnvMap" {
Properties {
_EnvMap ("EnvMap", 2D) = "black" { TexGen SphereMap }
}
SubShader {
Pass {
Name "BASE"
BindChannels {
Bind "Vertex", vertex
Bind "normal", normal
}
SetTexture [_EnvMap] {
combine texture
}
}
}
Fallback off
}
Shader "MY/EnvMapGlass"
{
Properties
{
_EnvMap ("EnvMap", 2D) = "black" { TexGen SphereMap }
}
SubShader
{
SeperateSpecular On
Pass
{
Name "BASE"
Cull Front
Blend One OneMinusDstColor
//Blend One One
BindChannels
{
Bind "Vertex", vertex
Bind "normal", normal
}
SetTexture [_EnvMap]
{
combine texture
}
}
Pass
{
Name "BASE"
ZWrite on
Blend One One
BindChannels
{
Bind "Vertex", vertex
Bind "normal", normal
}
SetTexture [_EnvMap]
{
combine texture
}
}
}
Fallback off
}
作者:
osaka
时间:
2012-7-27 21:48
犀利啊
!!!!!!!!!!!
作者:
她。
时间:
2012-8-3 18:02
我爱纳金网~www.narkii.com
作者:
Zack
时间:
2012-11-25 03:53
学习了。谢谢!
作者:
王者再临
时间:
2012-11-30 04:19
楼主的帖子不错呀
欢迎光临 纳金网 (http://go.narkii.com/club/)
Powered by Discuz! X2.5