mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 07:39:47 +00:00
Use GL_HALF_FLOAT because we use GL_RGBA16F
This commit is contained in:
parent
909e301dc6
commit
646148dfc8
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ namespace MWRender
|
||||||
{
|
{
|
||||||
osg::ref_ptr<osg::Texture2D> texture = new osg::Texture2D;
|
osg::ref_ptr<osg::Texture2D> texture = new osg::Texture2D;
|
||||||
texture->setSourceFormat(GL_RGBA);
|
texture->setSourceFormat(GL_RGBA);
|
||||||
texture->setSourceType(GL_FLOAT);
|
texture->setSourceType(GL_HALF_FLOAT);
|
||||||
texture->setInternalFormat(GL_RGBA16F);
|
texture->setInternalFormat(GL_RGBA16F);
|
||||||
texture->setFilter(osg::Texture2D::MIN_FILTER, osg::Texture::LINEAR);
|
texture->setFilter(osg::Texture2D::MIN_FILTER, osg::Texture::LINEAR);
|
||||||
texture->setFilter(osg::Texture2D::MAG_FILTER, osg::Texture::LINEAR);
|
texture->setFilter(osg::Texture2D::MAG_FILTER, osg::Texture::LINEAR);
|
||||||
|
|
Loading…
Reference in a new issue