RTShaderLib GLSLES some script is missing?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
longer
Kobold
Posts: 37
Joined: Tue Aug 19, 2014 10:46 am
x 5

RTShaderLib GLSLES some script is missing?

Post by longer »

I can't start up gles2 render system after missing some script.

Ogre/Samples/Media/RTShaderLib/GLSLES

current:
FFPLib_Texturing.glsl
SGXLib_LayeredBlending.glsl

missing:
FFPLib_Common.glsles
FFPLib_Fog.glsles
FFPLib_Lighting.glsles
FFPLib_Texturing.glsles
FFPLib_Transform.glsles
SampleLib_ReflectionMap.glsles
SGXLib_IntegratedPSSM.glsles
SGXLib_LayeredBlending.glsles
SGXLib_NormalMapLighting.glsles
SGXLib_PerPixelLighting.glsles
SGXLib_TextureAtlas.glsles
SGXLib_TriplanarTexturing.glsles
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: RTShaderLib GLSLES some script is missing?

Post by paroj »

these files are not required. See (or use) ApplicationContext code.
longer
Kobold
Posts: 37
Joined: Tue Aug 19, 2014 10:46 am
x 5

Re: RTShaderLib GLSLES some script is missing?

Post by longer »

thanks.GLSLES is use the same script file at GLSL.

Code: Select all

    if(Ogre::GpuProgramManager::getSingleton().isSyntaxSupported("glsles"))
    {
        Ogre::ResourceGroupManager::getSingleton().addResourceLocation(mRTShaderLibPath + "/GLSL", type, sec);
        Ogre::ResourceGroupManager::getSingleton().addResourceLocation(mRTShaderLibPath + "/GLSLES", type, sec);
    }
    else if(Ogre::GpuProgramManager::getSingleton().isSyntaxSupported("glsl"))
    {
        Ogre::ResourceGroupManager::getSingleton().addResourceLocation(mRTShaderLibPath + "/GLSL", type, sec);
    }
Post Reply