1 Shader "Custom/MyShader"{
 2 
 3 Properties{
 4 _Int ("Int",Int)=2
 5 }
 6 
 7 SubShader{
 8 //显卡a使用的子着色器
 9 Tags{"RenderType"="Opaque"}
10  CGPROGRAM
11  #pragma surface surf Lambert
12  struct Input
13  {
14  float4 color :COLOR;
15  };
16  void surf(Input IN,inout SurfaceOutput o)
17  {
18  o.Albedo=1;
19  }
20  ENDCG
21 }
22 Fallback "Diffuse"
23 }

 

Shader "Custom/MyShader"{

Properties{

}
SubShader
{

Pass
{

}

}
FallBack "Diffuse"
}

  

相关文章:

  • 2022-12-23
  • 2021-12-24
  • 2021-11-08
  • 2022-01-21
  • 2022-12-23
  • 2021-08-07
  • 2021-11-01
  • 2022-01-30
猜你喜欢
  • 2021-09-23
  • 2021-07-24
  • 2021-10-20
  • 2022-12-23
  • 2021-10-25
  • 2021-10-27
  • 2021-06-22
相关资源
相似解决方案