GPU Particles
self:has_shader
ClientChecks whether a shader is used as the particle material
Syntax
local result = self:has_shader()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
bool | result | true if a shader is applied, false otherwise |
Examples
local entity = particle.gpu.create()
core.engine.print("info", entity:has_shader())