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.

22 lines
359 B

  1. Shader "Hidden/WorldSpaceLightDirHlpNode"
  2. {
  3. SubShader
  4. {
  5. Pass
  6. {
  7. CGPROGRAM
  8. #pragma vertex vert_img
  9. #pragma fragment frag
  10. #include "UnityCG.cginc"
  11. float4 _EditorWorldLightPos;
  12. float4 frag( v2f_img i ) : SV_Target
  13. {
  14. float3 lightDir = normalize( _EditorWorldLightPos.xyz );
  15. return float4 ( lightDir, 1);
  16. }
  17. ENDCG
  18. }
  19. }
  20. }