Hi, I am just wondering how you can set multiple values for example to set a color. I am just testing fog and it works fine but the only problem is the variable use for the color. In standard OpenGL it's like this i think -
GLfloat fogColor[4]= {0.5f, 0.5f, 0.5f, 1.0f};
glFogfv(GL_FOG_COLOR, fogColor);
If i try -
fogColor = ( 0.5, 0.5, 0.5, 1.0 )
or
fogColor[4] = ( 0.5, 0.5, 0.5, 1.0 )
or
gl.float fogColor[4] = { 0.5, 0.5, 0.5, 1.0 }
gl.Fog(gl.FOG_COLOR, fogColor)
And various other attempts return a black screen. Without setting a color it shows fine but then the fog is always black as default but i wanted to set a grey so it appears more like real fog. Does anyone know how to do this with Xlua OpenGL code?