예제 #1
0
 /// <summary>
 /// 读取指定纹理,并为该资源生成阴影效果。
 /// </summary>
 ///
 /// <param name="texture"></param>
 /// <param name="angle"></param>
 /// <returns></returns>
 public static LTexture CreateShadowTexture(LTexture texture, float angle)
 {
     return(TextureUtils.CreateShadowTexture(texture, 0.4f, 1f, angle));
 }
예제 #2
0
 /// <summary>
 /// 读取指定图像资源,并为该资源生成阴影效果。
 /// </summary>
 ///
 /// <param name="resName"></param>
 /// <param name="angle"></param>
 /// <returns></returns>
 public static LTexture CreateShadowTexture(string resName, float angle)
 {
     return(TextureUtils.CreateShadowTexture(LTextures.LoadTexture(resName),
                                             0.4f, 1f, angle));
 }