Sorry I keep posting, but should also mention I'm using DirectionalLight3D. Not sure if that makes a difference or not but thought I'd just point that out.
- Matt On Jun 6, 1:49 pm, Matt Przybylski <m...@reintroducing.com> wrote: > Actually, I just tried changing all 3 at the same time and it worked > to start the scene but again did nothing if changing the values with > the slider. I even have a _view.render() call in the slider on > change. > > - Matt > > On Jun 6, 1:46 pm, Matt Przybylski <m...@reintroducing.com> wrote: > > > > > > > > > Hey guys, > > I've got a scene with a light in it and a slider to control the > > light's brightness. I set the slider from 0 to 1 and on change I set > > light.brightness = slider.value. Problem is, it doesn't work. What's > > the issue here? > > > I looked through the past group questions and found a post saying > > brightness is only available when you first create the light and > > cannot be controlled. If this is true, how do I then control the > > brightness of the scene? That same post also said you use the > > diffuse, specular, and ambient values but those are all different > > initially (.5, 1, .5, respectively) so I suppose I could set them all > > to 1 to start off though I don't think that will give me the desired > > effects I want and then not sure if that would even work with the > > brightness. Any insight into how lighting works would be greatly > > appreciated. > > > - Matt