GLSL questions for beginner

Hi,

I’m new to GLSL and coding and would love to learn more.

Few questions about GLSL, what do the following mean -

Uniform
Vec3
Vec4
Float
Return

What exactly is a ‘shader’?

Is there a good primer or beginners video course to all this? Been following @raganmd tutorials which have been amazing! Learned loads and just want to fully immerse myself in it and learn the basics and build it up!

Thanks!
GL

you can start here https://thebookofshaders.com/

1 Like

just answering for the words. Nettoyeur reference is a must.

uniform : importing a value from outside as in
uniform float myUnif;
You have to declare it in the glsl operator
vec3 : vector with 3 dimensions (xyz or rvb)
vec4 : vector with 4 dimensions (xyzw or rgba)
float : decimal number
return : function output

1 Like

Thank you both! This is tremendously helpful! I have been reading the book of shaders, i am determinded to be a master karate kid style on the basics like it says before i advance onwards.

1 Like