replit / kaboom

💥 JavaScript game library
https://kaboomjs.com
MIT License
2.66k stars 225 forks source link

Shader texture has all sprites #795

Open UnPolloLoco opened 10 months ago

UnPolloLoco commented 10 months ago

This can make modifying sprites very hard, because the uv coordinates don't go from 0 to 1 and other textures can easily leak in.

Example

slmjkdbtl commented 10 months ago

What are you trying to accomplish? The batched textured is used for performance, it should be ok as long as the uv coordinates is correct (in the example it should be texture2D(tex, uv) if you intend to render the image)