User Tools

Site Tools


shaders:lighting

Table of Contents

Lighting Styles

The Standard NextGenSprites shaders come in 3 lighting styles; Multi, Single and Unlit.

Matrix Ambient Directional Point/Spot
Multi
Per-Vertex

Per-Vertex

Per-Pixel
Single
Per-Vertex

Per-Vertex
Unlit

Multi

Multi Lit Sprites are lit by Ambient, Directional Lights and Point/Spot Lights.
Point and Spot Lights are rendered per-pixel which can be costly on low-end device - try to restrict yourself on less than two Point Lights.
Furthermore, on mobile devices you should consider that even though upper-middle and high-end class mobile chipsets may handle your Point Lights quite comfortably, a high workload on the CPU and GPU will drain the battery life faster which leads in a poor user experience(and a potentially bad Marketplate rating).

Single

Single Lit Sprites receive lighting from Ambient and Directional Lights and are rendered much faster than Multi Lit Sprites.

Unlit

Unlit Sprites do not care about lighting and therefore only have the Reflection and Dissolve feature.

shaders/lighting.txt · Last modified: 2015/10/15 20:01 by admin

Page Tools