Custom Vertex Attributes


is it possible to pass per vertex attributs to a material. like this in glsl:

	layout (location = 0) in vec2 pos;
	layout (location = 1) in vec2 morph;
	layout (location = 2) in int level;
	layout (location = 3) in vec3 a;
	layout (location = 4) in vec3 r;
	layout (location = 5) in vec3 s;
	//Morph calculation
	uniform vec3 camPos;
	uniform float radius;
	uniform float morphRange;
	uniform float distanceLUT[32];
	uniform mat4 model;
	uniform mat4 viewProj;
	//Height sampling
	uniform sampler2D texHeight;
	uniform sampler2D texHeightDetail;
	uniform sampler2D texDetail2;
	uniform float maxHeight = 10.7f;

I found a Solution. I can do the calculations with a ComputeShader. Seems to be best Option :).