Example #1
0
        /// <summary>
        /// 取得指定的ShardText
        /// </summary>
        /// <param name="shardName"></param>
        /// <returns></returns>
        public static string getShard(ShardText shardName)
        {
            string str =
                " Shader \"Alpha Additive\" {" +
                "Properties { _Color (\"Main Color \", Color ) = (1,1,1,0) }" +
                "SubShader {" +
                "    Tags { \"Queue\" = \"Transparent\" }" +
                "    Pass {" +
                "      Blend One One ZWrite Off ColorMask RGB" +
                "      Material { Diffuse [_Color] Ambient [_Color] }" +
                "      Lighting On" +
                "      SetTexture [_Dummy] { combine primary double, primary }" +
                "    }" +
                "}" +
                "}";

            return(str);
        }
Example #2
0
        /// <summary>
        /// 取得指定的ShardText
        /// </summary>
        /// <param name="shardName"></param>
        /// <returns></returns>
        public static string getShard(ShardText shardName)
        {
            string str =
            " Shader \"Alpha Additive\" {" +
            "Properties { _Color (\"Main Color \", Color ) = (1,1,1,0) }" +
            "SubShader {" +
            "    Tags { \"Queue\" = \"Transparent\" }" +
            "    Pass {" +
            "      Blend One One ZWrite Off ColorMask RGB" +
            "      Material { Diffuse [_Color] Ambient [_Color] }" +
            "      Lighting On" +
            "      SetTexture [_Dummy] { combine primary double, primary }" +
            "    }" +
            "}" +
            "}";

            return str;
        }