Need two values to control BRDF in deferred shading

Hi
I need some help with getting 2 values to control my deferred shading model. I have roughness and fresnel both clamped between 0 and 1. Is there any way to store both in the half nspec.a of the internal CalculateLight() methode?
Any help is much appreciated

Of course there is, but you’d get only 4 bits to store each, which is enough to represent only 16 distinct values.
You can compress the normals though… They always have a length of one, so it’s enough to store only x and y values + the sign of the z value without losing any precision. That gives you 15 free bits, enough to store 2 values with acceptable precision.