OpenGL state constants

22 views
Skip to first unread message

Peter Chen

unread,
Dec 1, 2012, 8:02:10 PM12/1/12
to uoft_csc...@googlegroups.com
In arbfrag pdf they say that the constants can be declared as PARAM something = state.material.ambient etc. what are these?

Peter Goodman

unread,
Dec 1, 2012, 8:02:59 PM12/1/12
to uoft_csc...@googlegroups.com
These are part of glsl, but not part of miniglsl; ignore it ;-)

Best Regards,

Peter Goodman,
http://www.petergoodman.me
65 High Park Ave.,
Toronto, Ontario
M6P 2R7


On Sat, Dec 1, 2012 at 8:02 PM, Peter Chen <peter.fe...@gmail.com> wrote:
In arbfrag pdf they say that the constants can be declared as PARAM something = state.material.ambient etc. what are these?

--
 
 

Peter Chen

unread,
Dec 1, 2012, 8:07:31 PM12/1/12
to uoft_csc...@googlegroups.com
but dont we have 3 gl_Light_half, gl_Light_ambient, gl_material_shininess that are state constants?

Peter Goodman

unread,
Dec 1, 2012, 10:17:48 PM12/1/12
to uoft_csc...@googlegroups.com
As stated in the spec, they are treated as uniform variables, i.e. they are constant. What is the issue?

Best Regards,

Peter Goodman,
http://www.petergoodman.me
65 High Park Ave.,
Toronto, Ontario
M6P 2R7


--
 
 

Reply all
Reply to author
Forward
0 new messages