Releases: almide-graphics/obsid
Releases · almide-graphics/obsid
obsid v0.2.0 — Texture, Toon & Shader APIs
obsid v0.2.0
New APIs
upload_texture_raw(id, data_ptr, data_len)— Upload PNG/JPEG bytes for async browser-side decode viacreateImageBitmapupdate_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 colorcreate_shader_program(id, frag_ptr, frag_len)— Compile custom fragment shader from WASM-provided GLSL sourceset_mesh_shader(mesh_id, program_id)— Bind custom shader program to mesh
Notes
create_shader_programalmide name avoids collision withwebgl.create_program(0-arg WebGL binding). The WASM import name remainscreate_program.