framebuffer { //This I underdstand
id: Fbo //This I understand
source: Clip //This I understand
shader: fragment, Blur.fsh //This I understand
uniform: orientation, vec2, 1, 0 // Orientation is fairly obvious and vec2 I assume is the x.y of the screen but
the 1, 0 afterwards ??? Is that a hotspot?
uniform: changeColor, int, 0 // Same here. Int is integer (whole number) but why is it there and the '0'
after it ??? Does int,0 mean full strength colors and random?
}
uniform: orientation, vec2, 1, 0
The Name of the Variable is orientation
It is Defined as a vec2 - it has Two Components too it.
The Value of these Two Components are being set to: 1,0
this is then Passed to the Shader.
If you look at the shader it will have the same Varaiable name in it, and it's getting the Value from the Scene File.
What Orientation is used for, all depends on the programing in the Shader.
since it is a user defined variable..
the same is true for this line
uniform: changeColor, int, 0
the name of the Variable is changeColor
it is defined as an int or interger
it's valu is set to 0
again, in the shader you will find the same variable, and it's getting it's value from the Scene File.
changeColor is a user defined varable, and what it means depends on the programming in the shader.
In this Case it's being used as a True or False 0=false, 1 = true
to determine if the Coloring is changed by the shader.
So this is how you Define a Variable of your Own Choice in the Scene File.
You are free to use any Variable name you want.
Set a Value to it, so that Value can be Passed to the Shader.
In the Shader, just make sure to use the same exact variable name.
Vector and Fragmanet shaders are a highlevel language.
Learning C and C++ will give you the basis for the rest of the Scene structure
it's very similar..