robertleva
Member
I was following a video tutorial and I created a shader with the following code:
//
// Simple passthrough fragment shader
//
varying vec2 v_vTexcoord;
varying vec4 v_vColour;
void main()
{
gl_FragColor = v_vColour * texture2D( gm_BaseTexture, v_vTexcoord );
gl_FragColor = vec4(1.0,1.0,1.0,gl_FragColor.a)
}
I get the "missing main" compile error. Also in the video the main word is in red, and in my version it stays grey.
//
// Simple passthrough fragment shader
//
varying vec2 v_vTexcoord;
varying vec4 v_vColour;
void main()
{
gl_FragColor = v_vColour * texture2D( gm_BaseTexture, v_vTexcoord );
gl_FragColor = vec4(1.0,1.0,1.0,gl_FragColor.a)
}
I get the "missing main" compile error. Also in the video the main word is in red, and in my version it stays grey.