All Downloads are FREE. Search and download functionalities are using the official Maven repository.

one.empty3.library.shader.sample.vertex.glsl Maven / Gradle / Ivy

There is a newer version: 2024.5.10
Show newest version
attribute vec3 position; // input vertex position from mesh
attribute vec2 texcoord; // input vertex texture coordinate from mesh
attribute vec3 normal;   // input vertex normal from mesh

varying vec2 tc; // output texture coordinate of vertex
varying vec3 fn; // output fragment normal of vertex

void main(){
  tc = texcoord;
  fn = normal;
  gl_Position = vec4(0.5 * position, 1.0);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy