You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to calculate the light intensity, you need to know the light direction. The tutorial doesn't seem to mention at all how to obtain this light direction though.
In your example code, the light_dir variable gets used, but we don't see it getting defined anywhere.