… Use a Punctual Light#

When you open Gestaltor, the sample scene already contains two lights. In this case, we add one point light using the KHR_lights_punctual extension.

  1. Open any scene. In this case, we do have a bottle with metallic and rough material.

../../_images/Light_01.png
  1. In glTF, any transformation for a mesh, camera and punctual light is stored in a node.

  2. Create a node by e.g. right clicking in the Hierarchy widget. In this case, we renamed the node to “MyLight”.

../../_images/Light_02.png
  1. Create a light by pressing Ctrl-Alt-L. In this case, we change the point light’s color from the white default to blue and we rename it ‘MyPointLight’

../../_images/Light_03.png
  1. Select the “MyLight” node and assign the light “MyPointLight” in the Inspector widget.

../../_images/Light_04.png
  1. As the node and the light are inside the mesh, change the position of the light. The light and the effect becomes visible now.

../../_images/Light_05.png