Version User Scope of changes
Jul 28 2007, 8:21 AM EDT (current) Mihai.Trandafir 2 words added, 2 words deleted
Jun 2 2007, 12:59 PM EDT X-Tatic 2 words added, 1 word deleted

Changes

Key:  Additions   Deletions

The idea of this sample is to show how you can use a Direcional Light to affect a material.
DirectionalLight.xpkg

Click on the image to download the sample.

Directional Light - Blade3D
When you install this package, a Torus, and a Directional Light will be added to the scene, as well as a floor grid. There is nothing particularly special about these instances, except for the fact that they are all using the DirectionalLightVertexLit sample material. The interesting thing to notice in this sample is that the light properties are connected to the DirectionalLightVertexLit material via the logic diagram "LightToMaterial". All this really does, is connect the position, direction, and color properties from the light to the material properties used to render the grid and torus.

Directional Light - Blade3D

You may also notice that the LightIntensity slider used on the GUI is connected to the material DiffuseIntensity with a multiplier. This means you can control the DiffuseIntensity directly with the slider in the top right corner of the screen.

Try changing the color properties of the light. You can select the light and move it around with the transformation tools.