Page 1 of 1

Setting GL_SPECULAR

Posted: Thu Sep 10, 2009 4:23 pm
by Lupo
Hi!

I will really like to have a check box in zApplication properties under Light Position, something like Enable Specular, to add a nice touch in the shading like this Opengl command does:

glLightfv(GL_LIGHT0, GL_SPECULAR, (1.0,1.0,1.0,1.0));

I know this could be made with shaders, but I think is a nice feature to have.

Thanks in advance!

Posted: Thu Sep 10, 2009 4:50 pm
by Kjell
Hi Lupo,

One of many fixed-function pipeline features missing from ZGE :roll: It's a difficult issue though. Ideally you want PC games to gracefully degrade on lower-end hardware, but you have to draw the line somewhere .. and it's always allot of additional work.

Anyway .. since the Material Component already holds the Diffuse property, I feel that Ambient / Specular / Emission would belong there as well, instead of being a member of App.

K