Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Direct light #47

Open
ereator opened this issue Mar 12, 2022 · 0 comments
Open

[FEATURE REQUEST] Direct light #47

ereator opened this issue Mar 12, 2022 · 0 comments
Labels
feature request New feature or request light Issue related to a light source or lighting

Comments

@ereator
Copy link
Member

ereator commented Mar 12, 2022

Is your feature request related to a problem? Please describe.
A new direct light source CLightDirect class should accompany existing spot light source CLightSpot class.

Describe the solution you'd like
Implement the CLightDirect class with the following parameters:

  • Vec3f intensity
  • Vec3f org
  • Vec3f dir
  • float hotspotRadius - radius of an inner cylinder with constant surface illumination
  • float falloffRadius - radius of an outer cylinder with attenuated illumination (attenuation function might be taken from the CLightSpot class)
  • bool castShadow
@ereator ereator added feature request New feature or request light Issue related to a light source or lighting labels Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request light Issue related to a light source or lighting
Projects
None yet
Development

No branches or pull requests

1 participant