Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 785 Bytes

getLightSource.markdown

File metadata and controls

30 lines (17 loc) · 785 Bytes

shader.getLightSource()

 
Type function
Library shader.*
Return value object
Visual Guide Visual Guide

Overview

Returns the Dynamic Shader object assigned as the light source via setLightColor()

Syntax

shader.getLightSource( )

returns object assigned as the light source via setLightColor()

Examples

local shader = require 'plugin.dynamic-shader'

local lightSource = shader.getLightSource( )