git-svn-id: svn://db.shs.com.ru/libs@286 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -108,9 +108,10 @@ void GLParticlesSystem::update() {
|
||||
}
|
||||
|
||||
|
||||
void GLParticlesSystem::draw(QGLShaderProgram * prog, bool) {
|
||||
void GLParticlesSystem::draw(__GLShaderProgram__ * prog, bool) {
|
||||
if (particles.isEmpty()) return;
|
||||
if (view_ == 0) return;
|
||||
QGLCI
|
||||
pass_ = GLObjectBase::Transparent;
|
||||
Camera & camera(view_->camera());
|
||||
QVector3D apos = camera.pos(), dir = camera.direction();
|
||||
@@ -186,7 +187,7 @@ void GLParticlesSystem::draw(QGLShaderProgram * prog, bool) {
|
||||
glEnableClientState(GL_VERTEX_ARRAY);
|
||||
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
|
||||
glEnableClientState(GL_COLOR_ARRAY);
|
||||
glBindBuffer(GL_ARRAY_BUFFER, 0);
|
||||
QGLC glBindBuffer(GL_ARRAY_BUFFER, 0);
|
||||
//glNormal3f(vn.x(), vn.y(), vn.z());
|
||||
glNormal3f(0., 0., 1.);
|
||||
glDepthMask(false);
|
||||
|
||||
Reference in New Issue
Block a user