摘要: 纹理偏移和缩放 S是Scale的首字母对应tiling, T是Translation的首字母对应Offset Shader "My/Unlit" { Properties { _MainTex("Main Tex", 2D) = "white" {} } SubShader { Tags { "Re 阅读全文
posted @ 2023-05-23 23:59 yanghui01 阅读(230) 评论(0) 推荐(0)
摘要: 效果图 半角向量和法线重叠时,为最亮, 此时夹角为0, dot(normal, halfDir)=1 using UnityEngine; [RequireComponent(typeof(MeshFilter))] public class ShowHalfDirTool : MonoBehavi 阅读全文
posted @ 2023-05-23 00:23 yanghui01 阅读(32) 评论(0) 推荐(0)