import com.ardor3d.renderer.state.record.LightStateRecord;
public abstract class JoglLightStateUtil {
public static void apply(final JoglRenderer renderer, final LightState state) {
final RenderContext context = ContextManager.getCurrentContext();
final ContextCapabilities caps = context.getCapabilities();
final LightStateRecord record = (LightStateRecord) context.getStateRecord(StateType.Light);
context.setCurrentState(StateType.Light, state);
if (state.isEnabled() && LightState.LIGHTS_ENABLED) {
setLightEnabled(true, record);
setTwoSided(state.getTwoSidedLighting(), record);
setLocalViewer(state.getLocalViewer(), record);