Nope, I still just get a org.lwjgl.opengl.OpenGLException: Invalid operation (1282) when I change it to a float.
It only works in jME if I remove the lookup method in the code. There is nothing wrong in my implementation in jME, because again, the code works if I remove the lookup stuff.
This is part of the fragment shader from the Orange Book [shadow shader]. Lwjgl (or Jme) is throwing an error when I run this.
when I run this in RenderMonkey, it works just fine. (pg344-345 in the book)
RenderMonkey and JME are separate applications.
What has pointed you to believe that JME might be the culprit?
This is part of the fragment shader from the Orange Book [shadow shader]. Lwjgl (or Jme) is throwing an error when I run this.
when I run this in RenderMonkey, it works just fine. (pg344-345 in the book)
RenderMonkey and JME are separate applications.
What has pointed you to believe that JME might be the culprit?
What is the error you received (StackTrace)?
again, you might wanna read the post again :)
since it works in rendermonkey and not in jme you could draw the conclusion that something is messed up(or more picky) in jme/lwjgl and it's shaderhandling/compilation or so.
the error he got was OpenGLException: Invalid operation (1282)