Skip to main content
GameDev.net gamedev.net
🔒 Locked 🎲 GameMaker

Render monkey error C0118

Started by Peyman Tahghighi Apr 1, 2014 at 5:30 PM 0 replies 2.5k views
Original Post
Peyman Tahghighi
Peyman Tahghighi

i'm find Render monkey to work and practice in openGL es2.0 shader language. as i start the program i add a new default opengl es 2.0 in effect workspace but when it opens i see lots of error in output window,the error is this for both fragment and vertex shader:


error C0118: macros prefixed with 'GL_' are reserved

and here is my vertex shader:


uniform mat4 matViewProjection;
attribute vec4 rm_Vertex;
void main(void)
{
   gl_Position = matViewProjection * rm_Vertex;
}

and fragment:


#ifdef GL_FRAGMENT_PRECISION_HIGH
   // Default precision
   precision highp float;
#else
   precision mediump float;
#endif

void main(void)
{
   gl_FragColor = vec4( 0.4, 0.0, 0.9, 1.0 );
}

it's so simple! and in addition i try Render monkey examples but still got this error in every vertex and fragment shader ! so what is the problem with it?

Mr. Kylin
Mr. Kylin

hi

all shaders of the samples can be compiled successfully on my computer.

but i'm encountering a black screen.

is there something wrong with my video card?

my card is nVidia GT 640 and GT650

thanks.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.