- Home /
Using single channel floating point texture for lookup-table in cg-Shader
Hi,
is there a possibility to create a Texture2D with a single channel floating point format (analog to ARB_texture_float)? I am trying to build 2D-lookup-texture of float data (8-bit precision is not sufficient for my application) for my shader and don't know how to implement this. The TextureFormat enumeration does not look very promising, but I found that RenderTexure supports a format like RenderTextureFormat.RFormat. Now I'm kind of stuck writing into the RenderTexture instance in my C# code before passing it to my Cg shader and I'm wondering if this is the recommended way of doing what I'm trying to do.
Thanks, iko
Your answer

Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Initialising List array for use in a custom Editor 1 Answer
Illuminating a 3D object's edges OnMouseOver (script in c#)? 1 Answer
How can i smooth my .dae mesh? 1 Answer