Lines Matching refs:Vec4
32 using tcu::Vec4;
63 params["FRAG_HEADER"] = isGLSL3 ? "#version 300 es\nlayout(location = 0) out mediump vec4 dEQP_FragColor;\n" : "";
94 "${VTX_OUT} mediump vec4 v_color;\n"
98 " gl_Position = vec4(a_position, 1.0);\n"
104 "${FRAG_IN} mediump vec4 v_color;\n"
118 vtxDummyInputs += "${VTX_IN} mediump vec4 a_in" + toString(i) + ";\n";
131 context.attributes.push_back(gls::VarSpec("a_in" + de::toString(i), Vec4(0.0f), Vec4(1.0f / (float)numDummyAttributes)));
147 " gl_Position = u_posTrans * vec4(a_position, 1.0);\n"
173 Vec4(0.0f), Vec4(1.0f)));
188 " gl_Position = vec4(a_position, 1.0);\n"
241 Vec4(0.0f), Vec4(1.0f / (float)numTextures)));
254 " mediump vec4 diffuseColor;\n"
263 " mediump vec4 position;\n"
270 "${VTX_IN} highp vec4 a_position${NS};\n"
273 "${VTX_IN} mediump vec4 a_texCoord0${NS};\n"
282 "${VTX_OUT} mediump vec4 v_baseColor${NS};\n"
289 "vec3 direction (vec4 from, vec4 to)\n"
299 " mediump vec4 eyePosition = u_modelViewMatrix${NS} * a_position${NS};\n"
302 " vec4 color = vec4(0.0, 0.0, 0.0, 1.0);\n"
320 " mediump vec4 position;\n"
330 " mediump vec4 diffuseColor;\n"
340 "${FRAG_IN} mediump vec4 v_baseColor${NS};\n"
373 " mediump vec4 color = v_baseColor${NS};\n"
384 context.attributes.push_back(gls::VarSpec("a_position${NS}", Vec4(-1.0f), Vec4(1.0f)));
386 context.attributes.push_back(gls::VarSpec("a_texCoord0${NS}", Vec4(-1.0f), Vec4(1.0f)));
389 context.uniforms.push_back(gls::VarSpec("u_material${NS}.diffuseColor", Vec4(0.0f), Vec4(1.0f)));
395 context.uniforms.push_back(gls::VarSpec("u_light${NS}[0].position", Vec4(-1.0f), Vec4(1.0f)));
411 Vec4(0.0f), Vec4(1.0f)));
422 " mediump vec4 diffuseColor;\n"
429 " mediump vec4 position;\n"
437 "${VTX_IN} highp vec4 a_position${NS};\n"
439 "${VTX_IN} mediump vec4 a_texCoord0${NS};\n"
449 "${VTX_OUT} mediump vec4 v_color${NS};\n"
451 "mediump vec3 direction (mediump vec4 from, mediump vec4 to)\n"
496 " highp vec4 position = a_position${NS};\n"
500 " mediump vec4 color = vec4(u_material${NS}.emissiveColor, u_material${NS}.diffuseColor.a);\n"
502 " highp vec4 eyePosition = u_modelViewMatrix${NS} * position;\n"
526 "${FRAG_IN} mediump vec4 v_color${NS};\n"
531 " mediump vec4 color = v_color${NS};\n"
538 context.attributes.push_back (gls::VarSpec("a_position${NS}", Vec4(-1.0f), Vec4(1.0f)));
540 context.attributes.push_back (gls::VarSpec("a_texCoord0${NS}", Vec4(-1.0f), Vec4(1.0f)));
543 context.uniforms.push_back (gls::VarSpec("u_material${NS}.diffuseColor", Vec4(0.0f), Vec4(1.0f)));
549 context.uniforms.push_back (gls::VarSpec("u_directionalLight${NS}[0].position", Vec4(-1.0f), Vec4(1.0f)));
564 context.uniforms.push_back(gls::VarSpec("u_spotLight${NS}["+ndxStr+"].position", Vec4(-1.0f), Vec4(1.0f)));
585 Vec4(0.0f), Vec4(1.0f)));