OpenGGEngine / OpenGG-Project

The Official OpenGG Project!
http://openggengine.github.io/OpenGG-Project/
MIT License
8 stars 2 forks source link

Shader error #26

Closed WarrenXiaGG closed 9 years ago

WarrenXiaGG commented 9 years ago

Exception in thread "main" java.lang.RuntimeException: WARNING: -1:65535: '#version' : version number deprecated in OGL 3.0 forward compatible context driver WARNING: 0:16: Only GLSL version > 110 allows postfix "F" or "f" for float ERROR: 0:18: 'texture2D' : function is removed in Forward Compatibile context ERROR: 0:18: 'texture2D' : no matching overloaded function found (using implicit conversion) ERROR: 0:18: 'rgb' : field selection requires structure, vector, or matrix on left hand side ERROR: 0:18: '=' : cannot convert from 'const float' to '3-component vector of float'

at com.opengg.core.shader.Shader.checkStatus(Shader.java:48)
at com.opengg.core.shader.Shader.<init>(Shader.java:39)
at com.opengg.test.OpenGGTest.setup(OpenGGTest.java:200)
at com.opengg.test.OpenGGTest.<init>(OpenGGTest.java:117)
at com.opengg.test.OpenGGTest.main(OpenGGTest.java:73)

Java Result: 1