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

Adding support for setting light attenuation in ADF file #227

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

adnanmunawar
Copy link
Member

Usage: In the light data, set the three optional normalized variables as

light1:
  namespace: /ambf/env/lights/
  name: light1
  location: {x: 0.0, y: 0.5, z: 2.5}
  direction: {x: 0, y: 0, z: -1.0}
  spot exponent: 0.3
  shadow quality: 0
  cutoff angle: 0.7
  attenuation: {constant: 1.0, linear: 0.0, quadratic: 0.0}  #<-- All these are optional i.e. any single one can be set by omitting others

Usage: In the light data, set the three normalized variables as

attenuation: {constant: 1.0, linear: 0.0, quadratic: 0.0}
@adnanmunawar adnanmunawar merged commit 2d674b6 into ambf-2.0 Mar 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant