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] Added ambient light #1059

Merged
merged 1 commit into from Sep 16, 2016

Conversation

Projects
None yet
4 participants
@AnotherFoxGuy
Member

AnotherFoxGuy commented Jun 22, 2016

Requested by @DarthCainRor
#374

Now you can add ambient lights to your object by adding this to your odef file

;pointlight x, y, z, dirx, diry, dirz, r, g, b, range
pointlight -13, 1, 6, -1, 0, -1, 10, 5, 0, 60
;spotlight x, y, z, dirx, diry, dirz, r, g, b, range, innerAngle, outerAngle 
spotlight  -13, 1, 6, -1, 0, -1, 10, 5, 0, 60,30,45
Vector3 lpos, ldir;
float lrange = 10, innerAngle = 45, outerAngle = 45;
ColourValue lcol;
String lname = "spotlight_" + TOSTRING(Math::RangeRandom(1000, 9999));

This comment has been minimized.

@Hiradur

Hiradur Jun 22, 2016

Contributor

Does lname have to be unique? If so then there is no guarantee here that it's unique.

@Hiradur

Hiradur Jun 22, 2016

Contributor

Does lname have to be unique? If so then there is no guarantee here that it's unique.

This comment has been minimized.

@AnotherFoxGuy

AnotherFoxGuy Jun 24, 2016

Member

No, it doesn't. it is only there for debugging.

@AnotherFoxGuy

AnotherFoxGuy Jun 24, 2016

Member

No, it doesn't. it is only there for debugging.

@only-a-ptr only-a-ptr added this to the 0.4.7.0 milestone Aug 30, 2016

@only-a-ptr only-a-ptr self-assigned this Aug 30, 2016

@ulteq

This comment has been minimized.

Show comment
Hide comment
@ulteq

ulteq Sep 10, 2016

Contributor

Looks good to me.

Contributor

ulteq commented Sep 10, 2016

Looks good to me.

@ulteq ulteq merged commit d367aa0 into RigsOfRods:master Sep 16, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@AnotherFoxGuy AnotherFoxGuy deleted the AnotherFoxGuy:ambient-lights branch Sep 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment