// set uniform to 3D vector void Shader::SetUniform(const c8 * const name, const float3 &val) { PUSH_ACTIVE_SHADER(t); Activate(); glUniform3fv(GetUniformLocation(name),1, val.GetVec()); POP_ACTIVE_SHADER(t); };