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
RTShaderLib GLSLES some script is missing?
-
- Kobold
- Posts: 37
- Joined: Tue Aug 19, 2014 10:46 am
- x 5
-
- OGRE Team Member
- Posts: 2141
- Joined: Sun Mar 30, 2014 2:51 pm
- x 1151
Re: RTShaderLib GLSLES some script is missing?
these files are not required. See (or use) ApplicationContext code.
-
- Kobold
- Posts: 37
- Joined: Tue Aug 19, 2014 10:46 am
- x 5
Re: RTShaderLib GLSLES some script is missing?
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);
}