Jump to content
Remember me This is not recommended for shared computers
Sign in anonymously Don't add me to the active users list
furrymaster hasn't added any contacts yet.
23 March 2012 - 12:42 AM
21 March 2012 - 01:15 PM
Shader compilation: Vertex shader failed to compile with the following errors:ERROR: 0:4: error(#132) Syntax error: 'layout' parse errorERROR: error(#273) 1 compilation errors. No code generated
//VERT: #version 330 in layout(location = 0) vec2 in_Position; in layout(location = 1) vec2 in_TexCoord; uniform mat4 modelViewProjectionMatrix; out vec2 txCoord; void main() { txCoord = in_TexCoord; gl_Position= modelViewProjectionMatrix*vec4(in_Position,0,1); } //FRAG: #version 330 in vec2 txCoord; uniform sampler2D tex; void main() { gl_FragColor=texture2D( tex, txCoord ); }
20 March 2012 - 01:46 PM
18 February 2012 - 11:53 AM
24 May 2011 - 11:11 PM
Vector_2D range=pos - target; range=range*range; if(range.x+range.y < 10) stop();