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.

Ambient light source

#103

In V0.7.5, the ambient light colour is taken from the SceneJS.Renderer#clearColor. The rationale was that the canvas colour represents the infinite scene "background".

However, we might want to show a model on a white background, in a scene with non-white (or even non-existent) ambient lighting. Solution is to provide an "ambient" LightSource type:

SceneJS.Lights({
      sources: [
         {
             type: "ambient",
             color: { r: .5, g: .5, b: .5 }
         }
      ]
});

When no "ambient" light is defined, the ambient light will default to the canvas colour, as it currently does.

Reported by lindsay.kay (at xeolabs) · June 3rd, 2010 @ 09:46 AM

State: new
Milestone: none

Activity

  1. lindsay.kay (at xeolabs)
    lindsay.kay (at xeolabs)
    • Milestone cleared.
    • Milestone order changed from 0 to 0

    August 3rd, 2010 @ 11:32 PM

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.