Lines Matching refs:Vec3
51 using tcu::Vec3;
764 "in mediump vec3 a_normal${NAME_SPEC};\n"
766 "uniform mediump vec3 u_material_ambientColor${NAME_SPEC};\n"
768 "uniform mediump vec3 u_material_emissiveColor${NAME_SPEC};\n"
769 "uniform mediump vec3 u_material_specularColor${NAME_SPEC};\n"
777 "uniform mediump vec3 u_light" + ndxStr + "_color${NAME_SPEC};\n"
778 "uniform mediump vec3 u_light" + ndxStr + "_direction${NAME_SPEC};\n";
798 resultTemplate += "out mediump vec3 v_eyeNormal${NAME_SPEC};\n";
802 "out mediump vec3 v_directionToLight${NAME_SPEC}[" + de::toString(numLights) + "];\n"
807 "mediump vec3 direction (mediump vec4 from, mediump vec4 to)\n"
809 " return vec3(to.xyz * from.w - from.xyz * to.w);\n"
812 "mediump vec3 computeLighting (\n"
813 " mediump vec3 directionToLight,\n"
814 " mediump vec3 halfVector,\n"
815 " mediump vec3 normal,\n"
816 " mediump vec3 lightColor,\n"
817 " mediump vec3 diffuseColor,\n"
818 " mediump vec3 specularColor,\n"
822 " mediump vec3 color = normalDotDirection * diffuseColor * lightColor;\n"
843 " highp vec3 normal = a_normal${NAME_SPEC};\n"
849 " mediump vec3 eyeNormal = normalize(u_normalMatrix${NAME_SPEC} * normal);\n";
867 " mediump vec3 directionToLight" + ndxStr + " = normalize(direction(eyePosition, u_light" + ndxStr + "_position${NAME_SPEC}));\n";
871 " mediump vec3 halfVector" + ndxStr + " = normalize(directionToLight" + ndxStr + " + vec3(0.0, 0.0, 1.0));\n"
884 " mediump vec3 directionToLight" + ndxStr + " = -u_light" + ndxStr + "_direction${NAME_SPEC};\n"
885 " mediump vec3 halfVector" + ndxStr + " = normalize(directionToLight" + ndxStr + " + vec3(0.0, 0.0, 1.0));\n"
915 "uniform mediump vec3 u_material_ambientColor${NAME_SPEC};\n"
917 "uniform mediump vec3 u_material_emissiveColor${NAME_SPEC};\n"
918 "uniform mediump vec3 u_material_specularColor${NAME_SPEC};\n"
926 "uniform mediump vec3 u_light" + ndxStr + "_color${NAME_SPEC};\n"
927 "uniform mediump vec3 u_light" + ndxStr + "_direction${NAME_SPEC};\n";
946 "in mediump vec3 v_eyeNormal${NAME_SPEC};\n";
950 "in mediump vec3 v_directionToLight${NAME_SPEC}[" + de::toString(numLights) + "];\n"
954 "mediump vec3 direction (mediump vec4 from, mediump vec4 to)\n"
956 " return vec3(to.xyz * from.w - from.xyz * to.w);\n"
961 "mediump vec3 computeLighting (\n"
962 " mediump vec3 directionToLight,\n"
963 " mediump vec3 halfVector,\n"
964 " mediump vec3 normal,\n"
965 " mediump vec3 lightColor,\n"
966 " mediump vec3 diffuseColor,\n"
967 " mediump vec3 specularColor,\n"
971 " mediump vec3 color = normalDotDirection * diffuseColor * lightColor;\n"
998 " mediump vec3 eyeNormal = normalize(v_eyeNormal${NAME_SPEC});\n"
1010 " mediump vec3 directionToLight" + ndxStr + " = normalize(v_directionToLight${NAME_SPEC}[" + ndxStr + "]);\n"
1012 " mediump vec3 halfVector" + ndxStr + " = normalize(directionToLight" + ndxStr + " + vec3(0.0, 0.0, 1.0));\n"
1019 " mediump vec3 directionToLight" + ndxStr + " = -u_light" + ndxStr + "_direction${NAME_SPEC};\n"
1020 " mediump vec3 halfVector" + ndxStr + " = normalize(directionToLight" + ndxStr + " + vec3(0.0, 0.0, 1.0));\n"
1071 vecTo16(Vec3(0.5f, 0.7f, 0.9f))));
1079 vecTo16(Vec3(0.7f, 0.2f, 0.2f))));
1083 vecTo16(Vec3(0.2f, 0.6f, 1.0f))));
1095 vecTo16(Vec3(0.8f, 0.6f, 0.3f))));
1099 vecTo16(Vec3(0.2f, 0.3f, 0.4f))));
1630 " vec3 color = vec3(float(iter) * (1.0 / float(NUM_ITERS)));\n"