selimanac
selimanac/defold-3D-outline-shader/outline
3D model outline shader for Defold: stencil or inverted-hull outlines drawn from a render script, with settable color, thickness and predicate tag.
- GitHub: selimanac/defold-3D-outline-shader — pinned to
07c2eee- This repo publishes no releases or tags. Add a commit archive URL — for the pinned commit,
https://github.com/selimanac/defold-3D-outline-shader/archive/07c2eee1abd821fb36daad6c7621258116ef75f2.zip— togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as outline from "outline"
- This repo publishes no releases or tags. Add a commit archive URL — for the pinned commit,
Functions
set(thickness: number, color:Vector4, type: number)draw(toggle: boolean)set_tag(tag: string)init(self: LuaMap<string, unknown> |PlainTable)update(self: LuaMap<string, unknown> |PlainTable, predicates: LuaMap<string, unknown> |PlainTable, frustum: { frustum:Matrix4}, clear_buffer?: LuaMap<render.ClearBufferKey, number |Vector4>)
set(thickness: number, color: Vector4, type: number)
Parameters
thickness:numbercolor:Vector4type:number
draw(toggle: boolean)
Parameters
toggle:boolean
set_tag(tag: string)
Parameters
tag:string
init(self: LuaMap<string, unknown> | PlainTable)
Parameters
self:LuaMap<string, unknown> | PlainTable
update(self: LuaMap<string, unknown> | PlainTable, predicates: LuaMap<string, unknown> | PlainTable, frustum: { frustum: Matrix4 }, clear_buffer?: LuaMap<render.ClearBufferKey, number | Vector4>)
Parameters
self:LuaMap<string, unknown> | PlainTablepredicates:LuaMap<string, unknown> | PlainTablefrustum:{ frustum: Matrix4 }clear_buffer?:LuaMap<render.ClearBufferKey, number | Vector4>