This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TouchDesigner vertex shader | |
// struct and data to fragment shader | |
out VS_OUT{ | |
vec4 position; | |
vec3 normal; | |
vec4 color; | |
vec2 uv; | |
} vs_out; | |
void main(){ | |
// packing data for passthrough to fragment shader | |
vs_out.position = TDDeform(P); | |
vs_out.normal = TDDeformNorm(N); | |
vs_out.color = Cd; | |
vs_out.uv = uv[0].st; | |
gl_Position = TDWorldToProj(vs_out.position); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment