QuantumBadger / Speedy2D

Rust library for hardware accelerated drawing of 2D shapes, images, and text, with an easy to use API.
Apache License 2.0
387 stars 42 forks source link

Custom fragment shader support #3

Open QuantumBadger opened 3 years ago

QuantumBadger commented 3 years ago

It would be possible to add an easy-to-use API for registering custom fragment shaders, and drawing triangles using those shaders.

The corresponding vertex shader could be dynamically generated to support passing an arbitrary number of attributes, and the ability to pass uniforms could also be exposed.

blaumeise20 commented 1 year ago

Please add this, I really need it for rendering a large grid on my game!