스승님의 테스트 코드 2

[오전 11:32:35] Dustin Lee: Shader “Custom/NewShader2” {
 Properties {
  _MainTex (“Base (RGB)”, 2D) = “white” {}
 }
 SubShader {
  Tags { “RenderType”=“Opaque” }
  LOD 200

  CGPROGRAM
  #pragma surface surf Lambert

  sampler2D _MainTex;

  struct Input {
   float2 uv_MainTex;
  };

  void surf (Input IN, inout SurfaceOutput o) {
   half4 c = tex2D (_MainTex, IN.uv_MainTex);
   o.Albedo = c.rgb;
   o.Alpha = c.a;
  }
  ENDCG
 
 
        GrabPass {
            Name “PREPASS”
            Tags { “LightMode” = “PrePassFinal” }
        } 
 
  Pass {
            Name “PREPASS”
            Tags { “LightMode” = “PrePassFinal” } 
   Blend One One
   SetTexture[_GrabTexture] { combine texture }
   SetTexture[_LightBuffer] { combine texture }
  
  }
 }
 FallBack “Diffuse”
}

우와 공부할거 늘어만 간다

Hugo로 만듦
JimmyStack 테마 사용 중