self:get_code
Client
Retrieves the compiled GLSL source code of the shader
Syntax
local result = self:get_code()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
string | result | Current compiled GLSL source code of the shader |
Examples
local entity = core.shader.create("assets/shaders/ripple.glsl", core.shader.shader_mode.CANVAS_ITEM)
core.engine.print("info", "Shader code:", entity:get_code())