23 Q_INIT_RESOURCE(shaders);
50 addShaderFromSourceFile(QOpenGLShader::Vertex,
":/shaders/vertex_shader.vert");
52 throw std::runtime_error(
"Vertex shader not loaded");
55 addShaderFromSourceFile(QOpenGLShader::Fragment,
":/shaders/fragment_shader.frag");
57 throw std::runtime_error(
"Fragment shader not loaded");
59 bindAttributeLocation(
"vertex", 0);
60 bindAttributeLocation(
"normal", 1);
61 bindAttributeLocation(
"axiscolor", 2);
71 ambient = uniformLocation(
"ambient");
72 eye = uniformLocation(
"eye");
73 locAxis = uniformLocation(
"axis");
103 setUniformValue(
locAxis, axis_);
Vector3D lightPosRotated1
const Position & getPos() const
void setAxis(bool const &)
void setMatModel(QMatrix4x4 const &)
static constexpr float AMBIENT
void InitShaderResources()