Skip to main content

5️⃣ The LTCGI_Screen component

The LTCGI_Screen component is the most important part of LTCGI. This is what controls the emission of light into your scene.

It must be placed on an object containing a Mesh Filter (generally in combination with a Mesh Renderer, but that part is not mandatory - you can have an invisible light source that way). Light will be emitted (and reflected) in the shape of the mesh selected on the Mesh Filter. The mesh must have exactly 3 or 4 vertices! UV Maps are supported, so textured light sources (video or static) can be UV'd.

⚠️ NOTE: There is also the LTCGI_Emitter component, which can only emit non-textured, baked diffuse light, but has no geometry restrictions. Most likely you want to use an LTCGI_Screen component.

To create a light source, place a 4-vertex mesh into your scene (Unity's built-in Quad will do) and add the component in the inspector window. If you have completed the previous step and are using an LTCGI-enabled material, you should see the mesh start to emit white light.

If it doesn't immediately work, try hitting "CTRL-S" to save your scene. This will force an LTCGI update as well, it's generally a good idea to keep hitting that while working on an LTCGI project any Unity project. Backups as well, people!

Mesh Rendering

It is very important to understand that the component only defines how the light is rendered. It does not change the appearance of the mesh itself! For example, you can have a blue mesh with an orange light:

blue mesh with orange light

You need to ensure that the mesh itself looks the same as the light it emits yourself, usually by changing the normal material on the Renderer!

Component Settings

LTCGI_Screen component interface

Basic Settings

Area light shapeDefines the type of light mesh. Quad/Triangle allows you to use any mesh with 3 or 4 vertices. Cylinder is experimental and allows you to define a cylindrical shape that will emit light.
ColorThe base color of this light. Will also be applied on textured lights as a multiplier, leave as White (1,1,1) to show textures unmodified. Supports HDR to increase brightness!
Try get Color from MaterialTries to load the exact color used on the Renderer's material (as _Color).

Light Settings

Diffuse ModeDefines how the light emits diffuse light. Options are No Diffuse to disable for performance, LTC Diffuse to use the LTC algorithm's version of diffuse or Lightmap Diffuse to directly use the data calculated in the Shadowmap bake. It is recommended to try these options in your particular environment, often times specular is enough, and diffuse can be left off for increased performance.
SpecularDetermines if specular light is emitted (reflections).
DynamicMarks this screen as dynamic. Comes with slight performance overhead, but allows moving the screen and changing its color at runtime.
Double SidedIf this screen emits light on both sides of the mesh.
Flip UVWorkaround. Some models imported from Blender or other 3D software can have flipped reflections. If you notice this, you can set this flag to un-flip them. (If anyone can tell me why this happens and has a more permanent fix, please let me know!)

Color Mode

The Color Mode property describes where the color for the light is coming from. It has 4 options:

StaticThe entire screen is lit up in the color set on the component.
TextureThe screen takes it's color values from a texture. This texture can be specified with the slider labeled Texture Index, which will select either the live video texture (0) or any one of the Static Textures you previously added to the Controller.
Single UVLike Texture, but will light up the screen in a single color taken from the texture at the exact UV coordinate you specify below.
Audio LinkSee AudioLink.

Affected Renderers

Selects which Renderers in your scene should receive light from this screen. See the section on Performance Optimization for more.

Lightmap Channel

Selects which lightmap channel this screen will occupy when baking a shadowmap. See section on Shadowmaps for more.