selimanacdefold-pixelart-shader
selimanac/defold-pixelart-shader/pixelart.scripts.pixelart_render
Render-script half of the pixel-art shader: creates its render targets and predicates, then draws the shadow, depth and pixelate passes each frame.
- GitHub: selimanac/defold-pixelart-shader — pinned to
8db334d- This repo publishes no releases or tags. Add a commit archive URL — for the pinned commit,
https://github.com/selimanac/defold-pixelart-shader/archive/8db334df85d2ab9863746fde45f3ed0b28bb49c8.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 scripts_pixelart_render from "pixelart.scripts.pixelart_render"
- This repo publishes no releases or tags. Add a commit archive URL — for the pinned commit,
Functions
init(self: LuaMap<string, unknown> | PlainTable)
Parameters
self:LuaMap<string, unknown> | PlainTable
update(self: LuaMap<string, unknown> | PlainTable, camera_frustum: Matrix4, view: Matrix4, proj: Matrix4, window_width: number, window_height: number, clear_buffers: LuaMap<render.ClearBufferKey, number | Vector4>)
Parameters
self:LuaMap<string, unknown> | PlainTablecamera_frustum:Matrix4view:Matrix4proj:Matrix4window_width:numberwindow_height:numberclear_buffers:LuaMap<render.ClearBufferKey, number | Vector4>