Welcome

I just finished the setup and installed a theme for wordpress that does not burn your eyes. Now it is indeed time to post some interesting cool stuff. But well, I guess I wont. Instead I will post some boring stuff just to test the syntax highlighting tool. But I am going to post some cool stuff later, I promise!

Here is a simple GLSL ES2.0 shader:

varying lowp vec2 v_texCoord0;

#if VERTEX 
attribute vec4 a_position;
attribute vec2 a_texCoord0;

uniform mat4 u_localToProjection;

void main() { 
	gl_Position = u_localToProjection * a_position;
	v_texCoord0 = a_texCoord0;
} 
#endif 

#if FRAGMENT 

uniform sampler2D Diffuse;
void main() { 
	gl_FragColor = texture2D( Diffuse, v_texCoord0 );
} 
#endif

Leave a Reply

Your email address will not be published.

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.