Jump to content
Sign in to follow this  
  • entries
  • comments
  • views


Sign in to follow this  


So getting a little tired of doing my GUI library (which is still basically useable, just needs touchups) I decied to check out RenderMonkey and learn GLSL.

What a cool tool this is. I was able to create my first shader in no time. Took a little bit to learn exactly how data is passed from RenderMonkey to the shaders but it worked out. RenderMonkey provies quite a collection of variables that it will pass into your shaders.

for my first shader I wanted a simple plane (200 faces or so) to osolate up and down based on time.

Here is my shaders. fTime0_X is a RenderMonkey supplied variable that is the sine of value Time (float).


uniform float fTime0_X;

void main(void)
vec4 pos = gl_Vertex;
pos.z += fTime0_X * 3.0;
gl_Position = gl_ModelViewProjectionMatrix * pos;
//gl_Position = ftransform();


void main(void)
gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );

Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!