Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Individual Lights

#160

Split SceneJS.Lights node into individual SceneJS.Light nodes.

Eg change this:

  SceneJS.lights({
    sources: [
      {
          type:                   "dir",
          color:                  { r: 1.0, g: 0.5, b: 0.5 },
          diffuse:                true,
          specular:               true,
          dir:                    { x: 1.0, y: 1.0, z: -1.0 }
      },
      {
          type:                   "dir",
          color:                  { r: 0.5, g: 1.0, b: 0.5 },
          diffuse:                true,
          specular:               true,
          dir:                    { x: 0.0, y: 1.0, z: -1.0 }
      },
     {
          type:                   "dir",
          color:                  { r: 0.2, g: 0.2, b: 1.0 },
          diffuse:                true,
          specular:               true,
          dir:                    { x: -1.0, y: 0.0, z: -1.0 }
      }
]},

to this:

SceneJS.light({
    type:                   "dir",
    color:                  { r: 1.0, g: 0.5, b: 0.5 },
    diffuse:                true,
    specular:               true,
    dir:                    { x: 1.0, y: 1.0, z: -1.0 }
}),

SceneJS.light({
    type:                   "dir",
    color:                  { r: 0.5, g: 1.0, b: 0.5 },
    diffuse:                true,
    specular:               true,
    dir:                    { x: 0.0, y: 1.0, z: -1.0 }
}),

SceneJS.light({
    type:                   "dir",
    color:                  { r: 0.2, g: 0.2, b: 1.0 },
    diffuse:                true,
    specular:               true,
    dir:                    { x: -1.0, y: 0.0, z: -1.0 }
}),

Reported by lindsay.kay (at xeolabs) · August 26th, 2010 @ 08:20 AM

State: resolved
Milestone: V0.7.7

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.