object - OpenGL - Directional bright Light? -


the light, added, looks on objects weak? want brighter , don't want give light position. mean, want bright light on screen same brightness in middle or @ corners?

float[] lightcolor = {1, 1, 1, 0}; float[] lightposition = {0, 0, 10, 0};    @override public void render () {      ...     gl.glenable(gl10.gl_lighting);     ...     gl.glenable(gl10.gl_light0);     gl.gllightfv(gl10.gl_light0, gl10.gl_diffuse, lightcolor, 0);     gl.gllightfv(gl10.gl_light0, gl10.gl_position, lightposition, 0); } 


Comments

Popular posts from this blog

asp.net mvc 3 - Using mvc3, I need to add a username/password to the sql connection string at runtime -

kineticjs - draw multiple lines and delete individual line -

thumbnails - jQuery image rotate on hover -