Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Sample in linear space. Decodes gamma.
- float4 tex2DLodLinear(sampler2D tex, float2 texCoord)
- {
- float4 sample = tex2Dlod(tex, float4(texCoord, 0.0, mipLod));
- return float4(pow(sample.rgb, 2.2), sample.a);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement