TorqueShaderEngine/LightingSystem/Shader Gen Features

From TDN

Introduction

This section explains the Torque Lighting System's expanded shader features for TGEA.

Contents


Exposure Control

Material exposure is controlled by the material property exposure (integer), which accepts the values 1, 2, and 4 (for normal, x2, and x4 exposure levels). Any value other than these defaults to 1.

Self-Illuminating/Emissive

Self-illumination is controlled by the material properties emissive (bool) and diffuse (color). Emissive enables self-illumination on the material, which uses the diffuse color value as the illumination color.

Attenuate Back Face

The material property attenuateBackFace (bool) reduces the bump highlights that can occur on surfaces facing away from light sources. This feature should be used carefully and only on objects with small surfaces, as using it with large surfaces (like interior surfaces) can cause reduced lighting intensity.