1. I have created and registered Ogre::HlmsUnlit and Ogre::HlmsPbs. Have a working colored wireframe.
2. I have this path in resources2.cfg.
Code: Select all
[Hlms]
DoNotUseAsResource=/opt/myApp/share
Code: Select all
/opt/myApp/share/Hlms/Unlit/GLSL
Code: Select all
#version 450 core
layout (location = 0) in vec3 aPosition;
out vec4 vertexColor;
void main()
{
gl_Position = vec4(aPosition, 1.0);
vertexColor = vec4(0.5, 0.0, 0.0, 1.0);
}
Code: Select all
terminate called after throwing an instance of 'Ogre::ItemIdentityException'
what(): OGRE EXCEPTION(5:ItemIdentityException): Parameter called worldMatBuf does not exist. in GpuProgramParameters::_findNamedConstantDefinition at /home/dev/tools/ogre-v2-1/OgreMain/src/OgreGpuProgramParams.cpp (line 2218)
Can anyone clarify how much of this is correct?