Hi
I would like to know if there is a documentation to know how to convert some GLSL syntax to AGk shader syntax.
Examples :
// at the start of the glsl file
attribute vec3 position;
// in void main()
gl_vertex = vec4(position,1.0)
// at the start of the glsl file
uniform vec4 uvBounds0;
varying vec2 uvVarying0;
attribute vec2 uv;
// in void main()
gl_multitexcoord0.xy = uv * uvBounds0.xy + uvBounds0.zw;
// at the start of the glsl file
uniform mat4 agk_ViewProj;
uniform mat4 agk_World;
// in void main()
gl_modelviewprojectionmatrix = agk_World * agk_ViewProj
For those syntax, I'm not sur
gl_modelviewmatrix = agk_View *agk_World
gl_normalmatrix = agk_WorldNormal
// at the start of the file
attribute vec3 normal;
// in void main()
gl_normal = normal
Thanks.
EDIT : correction after some test to confirm the conversion.
AGK2 tier1 - http://www.dracaena-studio.com