摘要: 效果图贴图法线贴图//代码Shader "Custom/NormalMap" { Properties { _MainTex ("Texture", 2D) = "white" {} _NormalMap ("NormalMap", 2D) = "bump" {} _Color ("Main ... 阅读全文
posted @ 2015-06-24 20:38 MrBlue 阅读(1189) 评论(0) 推荐(0) 编辑
摘要: 给模型偏移纹理using UnityEngine;using System.Collections;[RequireComponent(typeof(Renderer))]public class ModelTextureAnimation : MonoBehaviour { //材质索引 publ... 阅读全文
posted @ 2015-06-24 14:38 MrBlue 阅读(900) 评论(0) 推荐(0) 编辑
摘要: Shader "Custom/Flash" { Properties { _MainTex ("Base (RGB)", 2D) = "white" {} _Color("Diffuse Material Color", Color) = (1,1,1,1) ... 阅读全文
posted @ 2015-06-24 14:35 MrBlue 阅读(1631) 评论(0) 推荐(0) 编辑