[osg-submissions] EXT_texture_integer submission ShaderModel 4.0
Art Tevs
stud_info2 at yahoo.de
Thu Sep 6 09:27:28 PDT 2007
Hi folks,
I attached a patch to the latest osg svn, which does
implement integer textures as in the Shader Model 4.0
Features:
32, 16 and 8 bit unsigned and signed integer textures.
see EXT_texture_integer for more details
New Vector types added Vec2i, Vec2ui, Vec3i, Vec3ui,
Vec4i, Vec4ui
Testings:
- I have tested it by loading a raw integer image into
a texture. Texture was readable by the fragment
shader.
- Write to integer texture is more tricky, since it
require changings to the Shader.cpp (thus will follow
next days)
ToDo:
- Robert please correct following in the
Texture2DArray submission, which I have submitted
before:
void Texture2DArray::computeInternalFormat() const
{
if(_image.valid())
computeInternalFormatWithImage(*_image);
else checkIntegerInternalFormat();
}
- Please add new Vec*i and Vec*ui into the list of
include files which will be installed (since I am not
able to find this ;-))
I would be very appreciated if it could be included
into the osg core. I would also be very happy if the
Texture2DArray submission would also be included into
the core. More Sh4.0 patches will follow soon.
Best regards, Art
__________________________________
Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EXT_texture_integer.tar.gz
Type: application/x-gzip
Size: 37989 bytes
Desc: 229536850-EXT_texture_integer.tar.gz
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070906/b433c4fb/attachment-0001.bin
More information about the osg-submissions
mailing list