maltebp / River

2 stars 0 forks source link

Use Image samplers #58

Open maltebp opened 3 years ago

maltebp commented 3 years ago

Filtering and edge sampling parameters are set per texture, which can be problematic, as this is sometimes more dependent on how the Image is rendering than which image it is. Instead, we can use Sampler Objects to change set these values when binding the textures, which allows each renderer to decide how these textures should be filtered and wrapped.

See: https://www.khronos.org/opengl/wiki/Sampler_Object