Advertisement
Guest User

Untitled

a guest
Aug 21st, 2014
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1.  
  2. // Sample in linear space. Decodes gamma.
  3. float4 tex2DLodLinear(sampler2D tex, float2 texCoord)
  4. {
  5. float4 sample = tex2Dlod(tex, float4(texCoord, 0.0, mipLod));
  6. return float4(pow(sample.rgb, 2.2), sample.a);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement