Jump to content
  • Advertisement

Recommended Posts

 

Hi! my problem, shader isn't compiled, help please
who will be able, I do the program on embarcadero xe4. here two shader error code 0

// frag
 

uniform sampler2D tex0;
uniform sampler2D tex1;
uniform sampler2D dot3;
uniform float phase;

varying vec4 tc;
varying vec4 dc;

void main (void)
{
vec4 with = tc + texture2D (dot3, vec2 (dc.x + phase, dc.z)) * 0.4;
gl_FragColor = texture2DProj (tex0, c) * 0.4 + texture2DProj (tex1, c) + vec4(0, 0, 0,-0.87);
}


_______________________________________________________________________________

//vert
 

varying vec4 tc;
varying vec4 dc;
varying vec3 eye;

void main (void)
{
const mat4 m = mat4 (0.5, 0.0, 0.0, 0.0,
0.0, 0.5, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
0.5, 0.5, 0.0, 1.0);
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
tc = m * gl_Position;
dc = gl_Vertex * 0.025;
}

__________________________________________________________________________________

Share this post


Link to post
Share on other sites
Advertisement

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!