hecrj / coffee

An opinionated 2D game engine for Rust
https://docs.rs/coffee
MIT License
1.09k stars 55 forks source link

Configurable texture filtering #9

Open hecrj opened 5 years ago

hecrj commented 5 years ago

Currently, Coffee does only nearest neighbor interpolation.

We should probably allow to change this somehow. Is texture filtering normally a parameter that stays constant for a particular game? Could it be a simple configuration field on initialization?

hecrj commented 5 years ago

We probably need to be able to set texture filtering on a per Image or Canvas basis.

The issue with allowing it per texture is that we will need to somehow store the different texture samplers and bind them accordingly to the render pipeline depending on the texture setting. It should be doable, but I don't think this is a good first issue anymore.