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.
 
 
 

33 lines
485 B

Shader "Hidden/WorldSpaceLightPosNode"
{
SubShader
{
CGINCLUDE
#include "UnityCG.cginc"
#pragma vertex vert_img
#pragma fragment frag
ENDCG
Pass
{
CGPROGRAM
float4 _EditorWorldLightPos;
float4 frag( v2f_img i ) : SV_Target
{
float3 lightDir = normalize( _EditorWorldLightPos.xyz );
return float4 ( lightDir, 0);
}
ENDCG
}
Pass
{
CGPROGRAM
float4 frag( v2f_img i ) : SV_Target
{
return (0).xxxx;
}
ENDCG
}
}
}