Lines Matching refs:context

126 …gls::ProgramContext context(substitute(vertexTemplate, firstLevelParams).c_str(), substitute(fragm…  in generateBufferContext()  local
128 context.attributes.push_back(gls::VarSpec("a_position", Vec3(-0.1f), Vec3(0.1f))); in generateBufferContext()
131context.attributes.push_back(gls::VarSpec("a_in" + de::toString(i), Vec4(0.0f), Vec4(1.0f / (float… in generateBufferContext()
133 return context; in generateBufferContext()
161 …gls::ProgramContext context(substitute(vertexTemplate).c_str(), substitute(fragmentTemplate).c_str… in generateTextureContext() local
163context.attributes.push_back(gls::VarSpec("a_position", Vec3(-positionFactor), Vec3(position… in generateTextureContext()
164 context.attributes.push_back(gls::VarSpec("a_texCoord", Vec2(0.0f), Vec2(1.0f))); in generateTextureContext()
166 context.uniforms.push_back(gls::VarSpec("u_sampler", 0)); in generateTextureContext()
167context.uniforms.push_back(gls::VarSpec("u_posTrans", translationMat<4>(positionFactor-1.0f), tr… in generateTextureContext()
170 context.textureSpecs.push_back(gls::TextureSpec(gls::TextureTestUtil::TEXTURETYPE_2D, 0, in generateTextureContext()
175 return context; in generateTextureContext()
230 …gls::ProgramContext context(substitute(vertexTemplate, firstLevelParams).c_str(), substitute(fragm… in generateBufferAndTextureContext() local
232 context.attributes.push_back(gls::VarSpec("a_position", Vec3(-0.1f), Vec3(0.1f))); in generateBufferAndTextureContext()
236context.attributes.push_back(gls::VarSpec("a_texCoord" + de::toString(i), Vec2(0.0f), Vec2(1.0f))); in generateBufferAndTextureContext()
237 context.uniforms.push_back(gls::VarSpec("u_sampler" + de::toString(i), i)); in generateBufferAndTextureContext()
238 context.textureSpecs.push_back(gls::TextureSpec(gls::TextureTestUtil::TEXTURETYPE_2D, i, in generateBufferAndTextureContext()
244 return context; in generateBufferAndTextureContext()
382 …gls::ProgramContext context(substitute(vertexTemplate).c_str(), substitute(fragmentTemplate).c_str… in generateFragmentPointLightContext() local
384 context.attributes.push_back(gls::VarSpec("a_position${NS}", Vec4(-1.0f), Vec4(1.0f))); in generateFragmentPointLightContext()
385 context.attributes.push_back(gls::VarSpec("a_normal${NS}", Vec3(-1.0f), Vec3(1.0f))); in generateFragmentPointLightContext()
386 context.attributes.push_back(gls::VarSpec("a_texCoord0${NS}", Vec4(-1.0f), Vec4(1.0f))); in generateFragmentPointLightContext()
388context.uniforms.push_back(gls::VarSpec("u_material${NS}.ambientColor", Vec3(0.0f), Vec3(1.… in generateFragmentPointLightContext()
389context.uniforms.push_back(gls::VarSpec("u_material${NS}.diffuseColor", Vec4(0.0f), Vec4(1.… in generateFragmentPointLightContext()
390context.uniforms.push_back(gls::VarSpec("u_material${NS}.emissiveColor", Vec3(0.0f), Vec3(1.… in generateFragmentPointLightContext()
391context.uniforms.push_back(gls::VarSpec("u_material${NS}.specularColor", Vec3(0.0f), Vec3(1.… in generateFragmentPointLightContext()
392 context.uniforms.push_back(gls::VarSpec("u_material${NS}.shininess", 0.0f, 1.0f)); in generateFragmentPointLightContext()
394 context.uniforms.push_back(gls::VarSpec("u_light${NS}[0].color", Vec3(0.0f), Vec3(1.0f))); in generateFragmentPointLightContext()
395context.uniforms.push_back(gls::VarSpec("u_light${NS}[0].position", Vec4(-1.0f), Vec4(1.0f)… in generateFragmentPointLightContext()
396context.uniforms.push_back(gls::VarSpec("u_light${NS}[0].direction", Vec3(-1.0f), Vec3(1.0f)… in generateFragmentPointLightContext()
397 context.uniforms.push_back(gls::VarSpec("u_light${NS}[0].constantAttenuation", 0.1f, 1.0f)); in generateFragmentPointLightContext()
398 context.uniforms.push_back(gls::VarSpec("u_light${NS}[0].linearAttenuation", 0.1f, 1.0f)); in generateFragmentPointLightContext()
399 context.uniforms.push_back(gls::VarSpec("u_light${NS}[0].quadraticAttenuation", 0.1f, 1.0f)); in generateFragmentPointLightContext()
401context.uniforms.push_back(gls::VarSpec("u_mvpMatrix${NS}", translationMat<4>(-0.2f), transl… in generateFragmentPointLightContext()
402context.uniforms.push_back(gls::VarSpec("u_modelViewMatrix${NS}", translationMat<4>(-0.2f), tr… in generateFragmentPointLightContext()
403context.uniforms.push_back(gls::VarSpec("u_normalMatrix${NS}", translationMat<3>(-0.2f), tran… in generateFragmentPointLightContext()
404context.uniforms.push_back(gls::VarSpec("u_texCoordMatrix0${NS}", translationMat<4>(-0.2f), tr… in generateFragmentPointLightContext()
406 context.uniforms.push_back(gls::VarSpec("u_sampler0${NS}", 0)); in generateFragmentPointLightContext()
408 context.textureSpecs.push_back(gls::TextureSpec(gls::TextureTestUtil::TEXTURETYPE_2D, 0, in generateFragmentPointLightContext()
413 return context; in generateFragmentPointLightContext()
536 …gls::ProgramContext context(substitute(vertexTemplate).c_str(), substitute(fragmentTemplate).c_str… in generateVertexUniformLoopLightContext() local
538 context.attributes.push_back (gls::VarSpec("a_position${NS}", Vec4(-1.0f), Vec4(1.0f))); in generateVertexUniformLoopLightContext()
539 context.attributes.push_back (gls::VarSpec("a_normal${NS}", Vec3(-1.0f), Vec3(1.0f))); in generateVertexUniformLoopLightContext()
540context.attributes.push_back (gls::VarSpec("a_texCoord0${NS}", Vec4(-1.0f), Vec4(1.0f))… in generateVertexUniformLoopLightContext()
542context.uniforms.push_back (gls::VarSpec("u_material${NS}.ambientColor", Vec3(0.0f), Vec… in generateVertexUniformLoopLightContext()
543context.uniforms.push_back (gls::VarSpec("u_material${NS}.diffuseColor", Vec4(0.0f), Vec… in generateVertexUniformLoopLightContext()
544context.uniforms.push_back (gls::VarSpec("u_material${NS}.emissiveColor", Vec3(0.0f), Ve… in generateVertexUniformLoopLightContext()
545context.uniforms.push_back (gls::VarSpec("u_material${NS}.specularColor", Vec3(0.0f), Ve… in generateVertexUniformLoopLightContext()
546 context.uniforms.push_back (gls::VarSpec("u_material${NS}.shininess", 0.0f, 1.0f)); in generateVertexUniformLoopLightContext()
548context.uniforms.push_back (gls::VarSpec("u_directionalLight${NS}[0].color", Vec3(0.0f), … in generateVertexUniformLoopLightContext()
549context.uniforms.push_back (gls::VarSpec("u_directionalLight${NS}[0].position", Vec4(-1.0f), … in generateVertexUniformLoopLightContext()
550context.uniforms.push_back (gls::VarSpec("u_directionalLight${NS}[0].direction", Vec3(-1.0f), … in generateVertexUniformLoopLightContext()
551context.uniforms.push_back (gls::VarSpec("u_directionalLight${NS}[0].constantAttenuation", 0.1f,… in generateVertexUniformLoopLightContext()
552context.uniforms.push_back (gls::VarSpec("u_directionalLight${NS}[0].linearAttenuation", 0.1f, … in generateVertexUniformLoopLightContext()
553context.uniforms.push_back (gls::VarSpec("u_directionalLight${NS}[0].quadraticAttenuation", 0.1f,… in generateVertexUniformLoopLightContext()
554context.uniforms.push_back (gls::VarSpec("u_directionalLight${NS}[0].spotExponent", 0.1f, … in generateVertexUniformLoopLightContext()
555context.uniforms.push_back (gls::VarSpec("u_directionalLight${NS}[0].spotCutoff", 0.1f, 1… in generateVertexUniformLoopLightContext()
557 context.uniforms.push_back (gls::VarSpec("u_directionalLightCount${NS}", 1)); in generateVertexUniformLoopLightContext()
563context.uniforms.push_back(gls::VarSpec("u_spotLight${NS}["+ndxStr+"].color", Vec3(0.0f), … in generateVertexUniformLoopLightContext()
564context.uniforms.push_back(gls::VarSpec("u_spotLight${NS}["+ndxStr+"].position", Vec4(-1.0f), … in generateVertexUniformLoopLightContext()
565context.uniforms.push_back(gls::VarSpec("u_spotLight${NS}["+ndxStr+"].direction", Vec3(-1.0f), … in generateVertexUniformLoopLightContext()
566context.uniforms.push_back(gls::VarSpec("u_spotLight${NS}["+ndxStr+"].constantAttenuation", 0.1f,… in generateVertexUniformLoopLightContext()
567context.uniforms.push_back(gls::VarSpec("u_spotLight${NS}["+ndxStr+"].linearAttenuation", 0.1f, … in generateVertexUniformLoopLightContext()
568context.uniforms.push_back(gls::VarSpec("u_spotLight${NS}["+ndxStr+"].quadraticAttenuation", 0.1f,… in generateVertexUniformLoopLightContext()
569context.uniforms.push_back(gls::VarSpec("u_spotLight${NS}["+ndxStr+"].spotExponent", 0.1f, … in generateVertexUniformLoopLightContext()
570context.uniforms.push_back(gls::VarSpec("u_spotLight${NS}["+ndxStr+"].spotCutoff", 0.1f, 1… in generateVertexUniformLoopLightContext()
573 context.uniforms.push_back (gls::VarSpec("u_spotLightCount${NS}", 4)); in generateVertexUniformLoopLightContext()
575context.uniforms.push_back (gls::VarSpec("u_mvpMatrix${NS}", translationMat<4>(-0.2f), tr… in generateVertexUniformLoopLightContext()
576context.uniforms.push_back (gls::VarSpec("u_modelViewMatrix${NS}", translationMat<4>(-0.2f… in generateVertexUniformLoopLightContext()
577context.uniforms.push_back (gls::VarSpec("u_normalMatrix${NS}", translationMat<3>(-0.2f), … in generateVertexUniformLoopLightContext()
578context.uniforms.push_back (gls::VarSpec("u_texCoordMatrix0${NS}", translationMat<4>(-0.2f… in generateVertexUniformLoopLightContext()
580 context.uniforms.push_back (gls::VarSpec("u_sampler0${NS}", 0)); in generateVertexUniformLoopLightContext()
582 context.textureSpecs.push_back (gls::TextureSpec(gls::TextureTestUtil::TEXTURETYPE_2D, 0, in generateVertexUniformLoopLightContext()
587 return context; in generateVertexUniformLoopLightContext()