Author Topic: create Lights  (Read 9234 times)

Jan_K.

  • Jr. Member
  • **
  • Posts: 14
create Lights
« on: October 22, 2013, 01:01:38 PM »
Hey there ! I got a Problem with creating Lights in my scene. I want to create several different lights but it seems that only the first one the is set with the .setLights()-Method actually is set. My Code for light setting is this:


Is looks like this:

https://www.dropbox.com/s/xmpfl61iowmvts8/Lichtbeispiel.jpg

Only the green light (light1) seems to be created but why? And why are only some parts of the scene affected by the green light and others not?

Thanks!
« Last Edit: October 22, 2013, 01:03:57 PM by Jan_K. »

jerome_j

  • Administrator
  • *****
  • Posts: 116
    • Bonzai Engine
Re: create Lights
« Reply #1 on: October 22, 2013, 02:47:19 PM »
By default the ShaderGeneratorConfig has only 1 light enabled by default, default values are:
Use LightingAlgo.PerPixel/PerVertex to enable other lights.

Lights are only applied on models with normals (see ModelReaderSettings.lighting) and dynamic lighting enabled in the materials.
« Last Edit: October 22, 2013, 02:53:17 PM by jerome_j »