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

shader error

Started by Dmitrty Alexeev Nov 2, 2018 at 4:51 AM 2 replies 1.9k views
Original Post
Dmitrty  Alexeev
Dmitrty Alexeev


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

__________________________________________________________________________________

Dmitrty  Alexeev
Dmitrty Alexeev

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

Topic Locked

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

Sign in to reply to this topic.