GITHub入门

2017-02-10  本文已影响21人  OneMore2018

手把手教你最简单的开源项目托管GitHub入门教程(转)

http://www.manew.com/blog-73452-28309.html

自发光的shader

Shader "Custom/Self_Illumination" {

Properties{

_IlluminCol("Self-Illumination color (RGB)", Color) = (0.64,0.64,0.64,1)

_MainTex("Base (RGB) Self-Illumination (A)", 2D) = "white" {}

}

SubShader{

Tags{ "QUEUE" = "Geometry" "IGNOREPROJECTOR" = "true" }

Pass{

Tags{ "QUEUE" = "Geometry" "IGNOREPROJECTOR" = "true" }

Material{

Ambient(1,1,1,1)

Diffuse(1,1,1,1)

}

SetTexture[_MainTex]{ ConstantColor[_IlluminCol] combine constant * texture }

SetTexture[_MainTex]{ combine previous + texture }

SetTexture[_MainTex]{ ConstantColor[_IlluminCol] combine previous * constant }

}

}

}

上一篇 下一篇

猜你喜欢

热点阅读