module.exports = "#include <common>\n\nvec3 rotate_with_quat( vec3 v, vec4 q )\n{\n	return v + 2.0 * cross( q.xyz, cross( q.xyz, v ) + q.w * v );\n}\n\n\nattribute vec4 instanceOrientation;\nattribute vec3 instancePosition;\nattribute vec3 instanceScale;\nvarying float vViewZDepth;\n\n\n\nvoid main() {\n\n	vec3 v_POLYGON_instance_transform1_position = vec3(position);\n	v_POLYGON_instance_transform1_position *= instanceScale;\n	v_POLYGON_instance_transform1_position = rotate_with_quat( v_POLYGON_instance_transform1_position, instanceOrientation );\n	v_POLYGON_instance_transform1_position += instancePosition;\n	\n	// replaces #include <begin_vertex>\n	vec3 transformed = v_POLYGON_instance_transform1_position;\n\n\n	#include <project_vertex>\n\n	vViewZDepth = - mvPosition.z;\n}";
