You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.9 KiB

5 years ago
  1. // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
  2. // Shader created with Shader Forge v1.33
  3. // Shader Forge (c) Neat Corporation / Joachim Holmer - http://www.acegikmo.com/shaderforge/
  4. // Note: Manually altering this data may prevent you from opening it in Shader Forge
  5. /*SF_DATA;ver:1.33;sub:START;pass:START;ps:flbk:,iptp:0,cusa:False,bamd:0,lico:1,lgpr:1,limd:0,spmd:1,trmd:0,grmd:0,uamb:True,mssp:True,bkdf:False,hqlp:False,rprd:False,enco:False,rmgx:True,rpth:0,vtps:0,hqsc:True,nrmq:1,nrsp:0,vomd:0,spxs:False,tesm:0,olmd:1,culm:0,bsrc:3,bdst:7,dpts:2,wrdp:False,dith:0,atcv:False,rfrpo:True,rfrpn:Refraction,coma:15,ufog:False,aust:True,igpj:True,qofs:0,qpre:3,rntp:2,fgom:False,fgoc:False,fgod:False,fgor:False,fgmd:0,fgcr:0.5,fgcg:0.5,fgcb:0.5,fgca:1,fgde:0.01,fgrn:0,fgrf:300,stcl:False,stva:128,stmr:255,stmw:255,stcp:6,stps:0,stfa:0,stfz:0,ofsf:0,ofsu:0,f2p0:False,fnsp:False,fnfb:False;n:type:ShaderForge.SFN_Final,id:3138,x:33057,y:32649,varname:node_3138,prsc:2|emission-7241-RGB,alpha-7241-A;n:type:ShaderForge.SFN_Color,id:7241,x:32471,y:32812,ptovrint:False,ptlb:Color,ptin:_Color,varname:_Color,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,c1:0.07843138,c2:0.3921569,c3:0.7843137,c4:1;proporder:7241;pass:END;sub:END;*/
  6. Shader "Fog Volume/Primitive" {
  7. Properties {
  8. _Color ("Color", Color) = (0.07843138,0.3921569,0.7843137,1)
  9. [HideInInspector]_Cutoff ("Alpha cutoff", Range(0,1)) = 0.5
  10. }
  11. SubShader {
  12. Tags {
  13. "IgnoreProjector"="True"
  14. "Queue"="Transparent"
  15. "RenderType"="Transparent"
  16. }
  17. Pass {
  18. Name "FORWARD"
  19. Tags {
  20. "LightMode"="ForwardBase"
  21. }
  22. Blend SrcAlpha OneMinusSrcAlpha
  23. ZWrite Off
  24. Cull off
  25. CGPROGRAM
  26. #pragma vertex vert
  27. #pragma fragment frag
  28. //#define UNITY_PASS_FORWARDBASE
  29. #include "UnityCG.cginc"
  30. #pragma multi_compile_fwdbase
  31. #pragma only_renderers d3d9 d3d11 glcore gles gles3 metal
  32. #pragma target 3.0
  33. uniform float4 _Color;
  34. struct VertexInput {
  35. float4 vertex : POSITION;
  36. };
  37. struct VertexOutput {
  38. float4 pos : SV_POSITION;
  39. };
  40. VertexOutput vert (VertexInput v) {
  41. VertexOutput o = (VertexOutput)0;
  42. o.pos = UnityObjectToClipPos(v.vertex );
  43. return o;
  44. }
  45. float4 frag(VertexOutput i) : COLOR {
  46. ////// Lighting:
  47. ////// Emissive:
  48. float3 emissive = _Color.rgb;
  49. float3 finalColor = emissive;
  50. return fixed4(finalColor,_Color.a);
  51. }
  52. ENDCG
  53. }
  54. }
  55. FallBack "Diffuse"
  56. // CustomEditor "ShaderForgeMaterialInspector"
  57. }