Another one:
global folder$ = "raw:C:/AGK2/folder/" //[IDEGUIADD],selectfolder,Select a folder
There is a few unofficial ones that i cant really find a way to support for all the different "type" definitions , so they are pretty strict, and "use as is", they was mainly made to set shader variables so:
Note: vec4color command will always use value ranges from 0.0 to 1.0
//-- Selecting a color --
type vec4
x as float
y as float
z as float
w as float
endtype
global color as vec4 //[IDEGUIADD],vec4color,Adjust color.
color.x = 0.800000 //[IDEGUIADD],variable,Variable color changes goes here.
color.y = 0.729412 //[IDEGUIADD],variable,Variable color changes goes here.
color.z = 0.137255 //[IDEGUIADD],variable,Variable color changes goes here.
color.w = 1.000000 //[IDEGUIADD],variable,Variable color changes goes here.
//You need to use * 255 to use these for normal color values like:
SetClearColor(color.x*255,color.y*255,color.z*255)
--
//Selecting a vec3, any value can be used.
type vec4
x as float
y as float
z as float
w as float
endtype
global position as vec4 //[IDEGUIADD],vec3,Adjust object position.
position.x = 0.080000 //[IDEGUIADD],variable,Variable position changes goes here.
position.y = 100.020004 //[IDEGUIADD],variable,Variable position changes goes here.
position.z = -199.980011 //[IDEGUIADD],variable,Variable position changes goes here.
NOTE: you can also use "
global position as vec4 //[IDEGUIADD],vec4,Adjust a vec4 type." for a vec4 input setup.
The impotent in the type definition is that you MUST use .x,.y,.z,.w in the type for these code properties to work,
Also note that they was mainly made to be used for "SetShaderConstantByName" to adjust shader values real-time, thats why the color is returned in values from 0.0 to 1.0.
The "vec4color" and vec3/4 code properties is enables in 0.90, cant remember if they was also enabled in 0.80 so if they dont work wait for 0.90