单色 shader
- Shader "ChrisShader/OneColorShader"
- {
- Properties
- {_Color ("color", Color) = (0,0,0,0)
- }
- SubShader
- {
- Pass
- {
- Color[_Color]
- }
- }
- }
纹理 shader
- Properties {
- _MainTex("Base (RGB)", 2D) = "white" {}
- }
- SubShader {
- Pass {
- SetTexture[_MainTex] {
- combine texture
- }
- }
- }
- FallBack "Diffuse"
- }
来源: http://www.bubuko.com/infodetail-2522414.html