Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void GetLightingInformation_float(out float3 Direction, out float3 Color,out float Attenuation)
- {
- #ifdef SHADERGRAPH_PREVIEW
- Direction = float3(-0.5,0.5,-0.5);
- Color = float3(1,1,1);
- Attenuation = 0.4;
- #else
- Light light = GetMainLight();
- Direction = light.direction;
- Attenuation = light.distanceAttenuation;
- Color = light.color;
- #endif
- }
RAW Paste Data
Copied