Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

649
Views
Program Info Log: Vertex shader is not compiled. In Reactjs

My Code IS Getting These Errors. While I Have Downloaded Many Modules Which Were Related But Still Getting This Errors

THREE.WebGLProgram: Shader Error 0 - VALIDATE_STATUS false

Program Info Log: Vertex shader is not compiled. ERROR: 0:66: 'vUv' : undeclared identifier ERROR: 0:66: 'assign' : l-value required (can't modify a const) ERROR: 0:66: '=' : dimension mismatch ERROR: 0:66: 'assign' : cannot convert from 'in highp 2-component vector of float' to 'const highp float'

My Code In Which errors Are Occurring

const WaveShaderMaterial = shaderMaterial(
  // Uniform
  {
    uTime: 0,
    uColor: new THREE.Color(0.0, 0.0, 0.0),
    uTexture: new THREE.Texture(),
  },
  // Vertex Shader
  glsl`
  uniform float time;
  varying vec2 uVu;
  varying vec3 vPosition;
  uniform vec3 pixels;
  varying vec3 vNormal;
  varying vec3 eyeVector;
  float PI = 3.141592653589793238;
  void main() {
      vUv = uv;
      vNormal = normalize(normalMatrix*normal);
  
      vec3 newPosition = position;
      vec4 worldPosition = modelMatrix * vec4( newPosition, 1.0 );
      eyeVector = normalize(worldPosition.xyz - cameraPosition);
      gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
  }
  `,
  // Fragment Shader
  glsl`
  uniform float time;
  uniform float progress;
  uniform sampler2d Dream;
  uniform vec4 resolution;
  varying vec2 uVu;
  varying vec3 vNormal;
  varying vec3 eyeVector;
  float PI = 3.141592653589793238;
  void main() {
      vec2 uv = vec2(0.5,-0.5)*gl_Fragcolor.xy/vec2(1000.);
      vec3 x = dFdx(vNormal);
      vec3 Y =dFdy(vNormal);
      vec3 normal = normalize(cross(X,Y));
  
      vec3 refracted = refract(eyeVector, normal, 1./3.);
      uv += refracted.xy;
  
      float diffuse = dot(normal, vec3(1.));
      vec4 t = texture2D(Dream,vUv);
      gl_Fragcolor = t;
  }
  `
);

extend({ WaveShaderMaterial });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!