12 2017 档案
摘要:Properties { _R("Radius", Range(0,100)) = 1.0 _ColorTex("ColorTex (RGB)", 2D) = "red" {} struct Input { float2 uv_MainTex; float3 worldPos; //flo...
阅读全文
摘要:CGPROGRAM // Physically based Standard lighting model, and enable shadows on all light types #pragma surface surf Standard fullforwardshadows vertex:vert struct Input { ...
阅读全文
摘要:Texture2D colorTxt = new Texture2D(size, size); Color[] colors = new Color[10]{ Color.black, Color.white, Color.yellow , Color.gray , Color.green , Co
阅读全文
摘要:关闭VS 关闭VS 开启控制台并导航到Visual安装文件夹,例如C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE 开启控制台并导航到Visual安装文件夹,例如C:\Program Files (x8
阅读全文
摘要:这种情况下,需要调整.cpp文件中的头文件引用顺序,例如 A.cpp中 #include X.h #include Y.h #include A.h 尝试调整一下X.h和Y.h和A.h的顺序
阅读全文
摘要:
阅读全文
摘要:Shader "Custom/Blocks" { Properties { _Color ("Color", Color) = (1,1,1,1) _MainTex ("Albedo (RGB)", 2D) = "white" {} _Glossiness ("Smoothness", Range(0,1)) = 0.5 _...
阅读全文