Jump to content
Sign in to follow this  
R_cyph

Missing shading global variable 'L'

Recommended Posts

I'm trying to access this global variable "L" but it seems to be missing from the globals in a material builder in the /mat context. If I use a parameter node to call L it errors out saying there is already a global variable L. 

 

from the docs:

L (read-only)

Vector from the point on the surface to the light source. The length of this vector represents the distance to the light source.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×