qiuti.shader 552 B

12345678910111213141516171819202122232425262728293031
  1. Shader "Custom/InwardShader" {
  2. Properties{
  3. _MainTex("Albedo (RGB)", 2D) = "white" {}
  4. }
  5. SubShader{
  6. Tags { "RenderType" = "Opaque" }
  7. LOD 200
  8. Cull Front
  9. CGPROGRAM
  10. #pragma surface surf Standard vertex:vert
  11. void vert(inout appdata_full v) {
  12. v.normal.xyz = v.normal * -1;
  13. }
  14. sampler2D _MainTex;
  15. struct Input {
  16. float2 uv_MainTex;
  17. };
  18. void surf(Input IN, inout SurfaceOutputStandard o) {
  19. fixed4 c = tex2D(_MainTex, IN.uv_MainTex);
  20. o.Albedo = c.rgb;
  21. }
  22. ENDCG
  23. }
  24. FallBack "Diffuse"
  25. }