shader error

Started by
2 comments, last by Dmitrty Alexeev 5 years, 5 months ago

 

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;
}

__________________________________________________________________________________

Advertisement

Well, what's the error? See https://www.khronos.org/opengl/wiki/Example/GLSL_Shader_Compile_Error_Testing

to load shader it turns out, but it isn't compiled 
on embarcadero xe4, and on delphi 2006 turbo it is compiled.

This topic is closed to new replies.

Advertisement