shapes demo: material color now set to red in shader, ambient light off again. looks

better now that i understand light a bit better


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1387 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2012-08-13 02:57:30 +00:00
parent b8ea74d51e
commit b76e745afc

View File

@ -196,7 +196,7 @@ const ourGLchar *fragmentShaderSource[] = {
" 180.0, 0.0,", " 180.0, 0.0,",
" vec3(0.0, 0.0, 0.0)", " vec3(0.0, 0.0, 0.0)",
");", ");",
"vec4 scene_ambient = vec4(1.0, 0.0, 0.0, 1.0);", "vec4 scene_ambient = vec4(0.0, 0.0, 0.0, 1.0);",
" ", " ",
"struct material", "struct material",
"{", "{",
@ -206,8 +206,8 @@ const ourGLchar *fragmentShaderSource[] = {
" float shininess;", " float shininess;",
"};", "};",
"material frontMaterial = material(", "material frontMaterial = material(",
" vec4(0.7, 0.7, 0.7, 1.0),", " vec4(1.0, 0.0, 0.0, 1.0),",
" vec4(0.8, 0.8, 0.8, 1.0),", " vec4(1.0, 0.0, 0.0, 1.0),",
" vec4(1.0, 1.0, 1.0, 1.0),", " vec4(1.0, 1.0, 1.0, 1.0),",
" 100.0", " 100.0",
");", ");",