Shaders can now use cursorX and cursorY uniform variables

svn path=/trunk/KDE/kdebase/workspace/; revision=687375
This commit is contained in:
Rivo Laks 2007-07-13 13:10:31 +00:00
parent 1fcb1967fe
commit b027b57233

View file

@ -146,6 +146,8 @@ void ShaderEffect::postPaintScreen()
// Use the shader
mShader->bind();
mShader->setUniform("time", mTime);
mShader->setUniform("cursorX", (float)cursorPos().x());
mShader->setUniform("cursorY", (float)cursorPos().y());
// Render fullscreen quad with screen contents
glBegin(GL_QUADS);