VD-AMBIENTOCCLUSION.shader 598 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. Shader "Hidden/VD-AMBIENTOCCLUSION" {
  2. SubShader {
  3. cull off
  4. fog {mode off}
  5. Lighting Off
  6. LOD 200
  7. Tags { "RenderType" = "Opaque" }
  8. CGPROGRAM
  9. #pragma surface surf VDAO noambient novertexlights nolightmap nodirlightmap noforwardadd
  10. half4 _VDOccluderColor;
  11. fixed4 LightingVDAO (SurfaceOutput s, fixed3 lightDir, fixed atten) {
  12. fixed4 c;
  13. c.rgb = s.Albedo;
  14. c.a = s.Alpha;
  15. return c;
  16. }
  17. struct Input {
  18. half2 uv_MainTex;
  19. };
  20. void surf (Input IN, inout SurfaceOutput o) {
  21. o.Albedo = _VDOccluderColor;
  22. o.Alpha = 1.0;
  23. }
  24. ENDCG
  25. }
  26. }