Skip to Content
defold-typescript libraries
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
    1. 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 — to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Run bunx @defold-typescript/cli resolve to materialize its types.
    3. Import it under a namespace alias of your choice:
      import * as scripts_pixelart_render from "pixelart.scripts.pixelart_render"

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> | PlainTable
  • camera_frustum: Matrix4
  • view: Matrix4
  • proj: Matrix4
  • window_width: number
  • window_height: number
  • clear_buffers: LuaMap<render.ClearBufferKey, number | Vector4>

On this page