Skip to content

Lesson 2: What type is light_dir and where does it come from? #23

@jimmyvh

Description

@jimmyvh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions