GPU Particles

self:has_shader

Client

Checks whether a shader is used as the particle material

Syntax

local result = self:has_shader()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if a shader is applied, false otherwise

Examples

Check whether a shader is applied
local entity = particle.gpu.create()

core.engine.print("info", entity:has_shader())

On this page