Home | History | Annotate | Download | only in shaderrender

Lines Matching refs:coords

50 inline void evalReturnAlways	(ShaderEvalContext& c) { c.color.xyz() = c.coords.swizzle(0,1,2); }
51 inline void evalReturnNever (ShaderEvalContext& c) { c.color.xyz() = c.coords.swizzle(3,2,1); }
52 inline void evalReturnDynamic (ShaderEvalContext& c) { c.color.xyz() = (c.coords.x()+c.coords.y() >= 0.0f) ? c.coords.swizzle(0,1,2) : c.coords.swizzle(3,2,1); }
142 "layout(location = ${COORDLOC}) in ${COORDPREC} vec4 ${COORDS};\n"
147 " return vec4(${COORDS}.xyz, 1.0);\n"
148 " return vec4(${COORDS}.wzy, 1.0);\n"
156 const char* coords = isVertex ? "a_coords" : "v_coords";
163 params["COORDS"] = coords;
171 case RETURNMODE_DYNAMIC: params["RETURNCOND"] = std::string(coords) + ".x+" + coords + ".y >= 0.0"; break;
184 "layout(location = ${COORDLOC}) in ${COORDPREC} vec4 ${COORDS};\n"
188 " ${OUTPUT} = vec4(${COORDS}.xyz, 1.0);\n"
191 " ${OUTPUT} = vec4(${COORDS}.wzy, 1.0);\n"
200 "layout(location = ${COORDLOC}) in ${COORDPREC} vec4 ${COORDS};\n"
205 " ${OUTPUT} = vec4(${COORDS}.xyz, 1.0);\n"
208 " ${OUTPUT} = vec4(${COORDS}.wzy, 1.0);\n"
211 const char* coords = isVertex ? "a_coords" : "v_coords";
217 params["COORDS"] = coords;
226 case RETURNMODE_DYNAMIC: params["RETURNCOND"] = std::string(coords) + ".x+" + coords + ".y >= 0.0"; break;
237 "layout(location = ${COORDLOC}) in ${COORDPREC} vec4 ${COORDS};\n"
242 " ${COORDPREC} vec4 coords = ${COORDS};\n"
246 " return coords;\n"
247 " coords = coords.wzyx;\n"
249 " return coords;\n"
257 const char* coords = isVertex ? "a_coords" : "v_coords";
264 params["COORDS"] = coords;
273 case RETURNMODE_DYNAMIC: params["RETURNCOND"] = std::string(coords) + ".x+" + coords + ".y >= 0.0"; break;
299 case RETURNMODE_DYNAMIC: return "Return based on coords";