Login  Register

Re: How to apply a constant alpha to a Texture...

Posted by gouessej on Oct 12, 2017; 6:01pm
URL: https://forum.jogamp.org/How-to-apply-a-constant-alpha-to-a-Texture-tp4038246p4038253.html

Actually, maybe it isn't. If the storage is aligned on 32 bits in memory, using one more byte to store a color component won't be a resource hit.

You just need a very basic fragment shader in which you pass the alpha component, the sampler for the texture and the texture coordinates in input and you modify the alpha component of the color in output. You may have to enable the blending.
Julien Gouesse | Personal blog | Website