Skip to content

DirectionalLight.cpp access Public vector d in header file #22

@FannieZhao0317

Description

@FannieZhao0317

Hi,

For file DirectionalLight.cpp, we have 2 vector with the same name: direction vector of the directional light public d(in header file) and direction from source to light local d.

Online it says to use ::d to access the global d, but it turns out not working. I tried using this->d and it works.

Could someone explain abit on why ::d doesn't work in this case?

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