Skip to content

Releases: almide-graphics/obsid

obsid v0.2.0 — Texture, Toon & Shader APIs

12 May 16:24

Choose a tag to compare

obsid v0.2.0

New APIs

  • upload_texture_raw(id, data_ptr, data_len) — Upload PNG/JPEG bytes for async browser-side decode via createImageBitmap
  • update_mesh_verts(id, vert_ptr, vert_count) — Re-upload vertex data without touching the index buffer (for morph target updates)
  • set_mesh_toon(mesh_id, shade_r, shade_g, shade_b, threshold) — Per-mesh MToon-style cel shading with custom shade color
  • create_shader_program(id, frag_ptr, frag_len) — Compile custom fragment shader from WASM-provided GLSL source
  • set_mesh_shader(mesh_id, program_id) — Bind custom shader program to mesh

Notes

  • create_shader_program almide name avoids collision with webgl.create_program (0-arg WebGL binding). The WASM import name remains create_program.