ParaToxic Posted March 29, 2012 Share Posted March 29, 2012 Hey is it possible to adjust the intensity value in C++ ?? I would like to create a pointlight and set the intensity about 1.0 but I can't find the command for that.It is possible to adjust that like in the editor? Thanks Quote Link to comment Share on other sites More sharing options...
Daimour Posted March 29, 2012 Share Posted March 29, 2012 Just few topics earlier: http://www.leadwerks.com/werkspace/topic/4752-light-intensive/page__fromsearch__1 Quote Link to comment Share on other sites More sharing options...
ParaToxic Posted March 29, 2012 Author Share Posted March 29, 2012 Yes I saw it but with the Call of entitycolor() I can just Set the intensity to 1 or 100% but in the Editor you can Set it higher to make à kind of override Effects Quote Link to comment Share on other sites More sharing options...
Daimour Posted March 29, 2012 Share Posted March 29, 2012 Wiki: http://www.leadwerks...ies#EntityColor "A light's intensity is controllable with it's color by multiplying the components: EntityColor(light,Vec4(2)); makes the light twice as bright as EntityColor(light,Vec4(1));" EntityColor(light, Vec4(r * intensity, g * intensity, b * intensity, a), 1) Quote Link to comment Share on other sites More sharing options...
ParaToxic Posted March 30, 2012 Author Share Posted March 30, 2012 Ahhhh thanks so much,didn't see that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.