I think I had asked this before but I forgot the answer by now

What is the equivalent of
/All are vec4
DP3 temp, variable1, variable2;

It could be
temp = vec4(dot(variable1.xyz, variable2.xyz), dot(variable1.xyz, variable2.xyz), dot(variable1.xyz, variable2.xyz), dot(variable1.xyz, variable2.xyz));

how about
//worldMatrix is a 4x4
//vector is a vec4
mult3x3 temp, worldMatrix, vector;

vec4 temp;
temp.xyz = dot(var1.xyz, var2.xyz);
Thatâ€™s actually not good because it will complain that you are trying to cast a float to vec3
This will work
temp.xyz = vec3(dot(var1.xyz, var2.xyz));