Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 980 Bytes

destroy.markdown

File metadata and controls

37 lines (22 loc) · 980 Bytes

shader.destroy()

 
Type function
Library shader.*
See also start(), stop(), getEngineState()
Visual Guide Visual Guide

Overview

Removes all objects from the Dynamic Shader and stops the Dynamic Shader engine.

Syntax

shader.destroy()

Examples

local shader = require 'plugin.dynamic-shader'

shader.destroy() -- removes all objects from the Dynamic Shader and stops the Dynamic Shader engine

local lightTable = shader.getLightTable() -- get the current Dynamic Shader values

print(lightTable.engine)
-- false

local objectList = shader.getObjectList()

print(objectList)
-- empty table