Hi, I have some trouble with one of my sample using shaders.
The shader is simple :
#version 100
precision mediump float;
attribute vec4 vertexPos;
attribute vec4 vertexColor;
attribute vec2 vertexTexCoord;
varying vec4 color;
varying vec2 texCoord;
uniform mat4 MVP;
void main()
{
texCoord = vertexTexCoord;
color = vertexColor;
gl_Position = MVP*vertexPos;
}
And inside the C++ I have
m_program = glCreateProgram();
if ( !m_program )
error::throw_ex("unable to create GLSL program",__FILE__,__LINE__);
glBindAttribLocation(m_program, 0, "vertexPos");
glBindAttribLocation(m_program, 1, "vertexColor");
glBindAttribLocation(m_program, 2, "vertexTexCoord");
Inside the console I have this error :
[Error] WARNING: Could not find vertex shader attribute 'vertexTexCoord' to
match BindAttributeLocation request.
printErr (settings.js, line 173)
[Error] WARNING: Could not find vertex shader attribute 'vertexPos' to
match BindAttributeLocation request.
printErr (settings.js, line 173)
[Error] WARNING: Could not find vertex shader attribute 'vertexColor' to
match BindAttributeLocation request.
printErr (settings.js, line 173)
The code is build using -s FULL_ES2=1, it's a webcl sample I only can use
for the moment on WebKit, I hope soon on Firefox with Nokia extension, but
until the compatibility with FF, can you say me if I do something wrong ???
Thanks
Tony
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.