* Sync of all the shaders from upstream + LoadFontData did not match anymore with C and crashed on MacOS * Updated JuliaSet demo. Did not work with the new shader version. * Removed unused `pause` variable from JuliaSet example. --------- Co-authored-by: Meatcorps <info@meatcorps.nl>
26 lines
No EOL
563 B
GLSL
26 lines
No EOL
563 B
GLSL
#version 100
|
|
|
|
// Input vertex attributes
|
|
attribute vec3 vertexPosition;
|
|
attribute vec2 vertexTexCoord;
|
|
attribute vec3 vertexNormal;
|
|
attribute vec4 vertexColor;
|
|
|
|
// Input uniform values
|
|
uniform mat4 mvp;
|
|
|
|
// Output vertex attributes (to fragment shader)
|
|
varying vec2 fragTexCoord;
|
|
varying vec4 fragColor;
|
|
|
|
// NOTE: Add your custom variables here
|
|
|
|
void main()
|
|
{
|
|
// Send vertex attributes to fragment shader
|
|
fragTexCoord = vertexTexCoord;
|
|
fragColor = vertexColor;
|
|
|
|
// Calculate final vertex position
|
|
gl_Position = mvp*vec4(vertexPosition, 1.0);
|
|
} |