OpenGL3

Hi,

I’ve tried to use Open-GL3:



[java]

20-mar-2011 20.37.10 com.jme3.renderer.lwjgl.LwjglRenderer updateShaderSourceData

AVVERTENZA: Bad compile of:

attribute vec4 inPosition;

attribute vec2 inTexCoord;



uniform mat4 g_WorldViewProjectionMatrix;

uniform mat4 g_WorldViewMatrix;



varying vec2 texCoord;



void main(){

gl_Position = g_WorldViewProjectionMatrix * inPosition;

texCoord = inTexCoord;

}





20-mar-2011 20.37.10 com.jme3.app.Application handleError

GRAVE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

com.jme3.renderer.RendererException: compile error in:ShaderSource[name=Common/MatDefs/Shadow/PreShadow.vert, defines, type=Vertex] error:Vertex shader failed to compile with the following errors:

ERROR: error(#272) Implicit version number 110 not supported by GL3 forward compatible context

ERROR: error(#273) 2 compilation errors. No code generated



[/java]



Will you update shaders to OpenGl3 (and opengl4) ?

Thanks

Bye

Yeah, some time. For now people just got over the fact that they need OpenGL2 :wink:

There’s no need to specify OpenGL3 mode, since already many shaders dynamically use OpenGL3 features through techniques even when running under OpenGL2.

However when you specify OpenGL3 mode, it requires all shaders to use it exclusively.