Searched refs:diffuse (Results 1 - 25 of 40) sorted by relevance

12

/xsrc/external/mit/mesa-demos/dist/src/tests/
H A Dbackspecular.c8 static const float diffuse[4] = { 1, 0, 0, 1 }; variable in typeref:typename:const float[4]
75 glMaterialfv(GL_FRONT, GL_DIFFUSE, diffuse);
H A Darbvparray.c122 static float diffuse[] = {0.5, 1.0, 1.0, 1.0}; local in function:InitMaterials
137 glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
142 glLightfv(GL_LIGHT1, GL_DIFFUSE, diffuse);
H A Dvparray.c122 static float diffuse[] = {0.5, 1.0, 1.0, 1.0}; local in function:InitMaterials
137 glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
142 glLightfv(GL_LIGHT1, GL_DIFFUSE, diffuse);
H A Ddrawbuffers2.c320 static const GLfloat diffuse[4] = { 1.0, 1.0, 1.0, 0.75 }; local in function:SetupLighting
324 glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, diffuse);
/xsrc/external/mit/mesa-demos/dist/src/glsl/
H A Dlinktest.c17 static GLfloat diffuse[4] = { 0.5f, 1.0f, 0.5f, 1.0f }; variable in typeref:typename:GLfloat[4]
46 "uniform vec4 diffuse;\n"
56 " gl_FragColor = diffuse * dotProd + specular * pow(dotProd, 20.0); \n"
211 uDiffuse = glGetUniformLocation(Program, "diffuse");
217 glUniform4fv(uDiffuse, 1, diffuse);
223 glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, diffuse);
/xsrc/external/mit/mesa-demos/dist/src/redbook/
H A Dteapots.c57 GLfloat diffuse[] = local in function:myinit
68 glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
H A Ddof.c129 GLfloat diffuse[] = { 1.0, 1.0, 1.0, 1.0 }; local in function:myinit
139 glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
H A Dcubemap.c110 GLfloat diffuse[4] = {1.0, 1.0, 1.0, 1.0}; local in function:init
149 glMaterialfv (GL_FRONT, GL_DIFFUSE, diffuse);
H A Dmaterial.c55 GLfloat diffuse[] = { 1.0, 1.0, 1.0, 1.0 }; local in function:myinit
64 glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
80 * The first column has materials with blue, diffuse reflection only.
81 * The second column has blue diffuse reflection, as well as specular
83 * The third column has blue diffuse reflection, as well as specular
105 * diffuse reflection only; no ambient or specular
118 * diffuse and specular reflection; low shininess; no ambient
131 * diffuse and specular reflection; high shininess; no ambient
144 * diffuse reflection; emission; no ambient or specular reflection
157 * ambient and diffuse reflectio
[all...]
/xsrc/external/mit/mesa-demos/dist/src/samples/
H A Dfog.c129 static float diffuse[] = {1.0, 1.0, 1.0, 1.0}; local in function:Init
145 glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
H A Deval.c136 static float diffuse[] = {1.0, 1.0, 1.0, 1.0}; local in function:Init
161 glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
H A Dquad.c104 static float diffuse[] = {0.5, 1.0, 1.0, 1.0}; local in function:Init
127 glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
H A Dsphere.c683 float diffuse[] = {1.0, 1.0, 1.0, 1.0}; local in function:Init
719 glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
H A Dwave.c359 static float diffuse[] = {0.5, 1.0, 1.0, 1.0}; local in function:InitMaterials
374 glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
/xsrc/external/mit/mesa-demos/dist/src/demos/
H A Darbfslight.c19 static GLfloat diffuse[4] = { 0.5f, 0.5f, 1.0f, 1.0f }; variable in typeref:typename:GLfloat[4]
186 "uniform vec4 diffuse;\n"
192 " // Compute diffuse and specular contributions\n"
193 " gl_FragColor = diffuse * dotProd + specular * pow(dotProd, 20.0);\n"
234 uDiffuse = glGetUniformLocationARB(program, "diffuse");
237 glUniform4fvARB(uDiffuse, 1, diffuse);
244 glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, diffuse);
H A Dfslight.c31 static GLfloat diffuse[4] = { 0.5f, 0.5f, 1.0f, 1.0f }; variable in typeref:typename:GLfloat[4]
449 "uniform vec4 diffuse;\n"
456 " // Compute diffuse and specular contributions\n"
457 " gl_FragColor = diffuse * dotProd + specular * pow(dotProd, 20.0);\n"
491 uDiffuse = glGetUniformLocation(program, "diffuse");
497 glUniform4fv(uDiffuse, 1, diffuse);
525 glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, diffuse);
/xsrc/external/mit/mesa-demos/dist/src/objviewer/
H A Dglm.h37 float diffuse[4]; /* diffuse component */ member in struct:_GLMmaterial
42 char *map_kd; /* diffuse texture map file */
43 uint texture_kd; /* diffuse texture map */
H A Dglmdraw.c93 model->materials[group->material].diffuse);
101 glColor3fv(model->materials[group->material].diffuse);
387 * diffuse texture? true/false
391 "uniform vec4 ambient, diffuse, specular; \n"
407 " diffTerm = diffuse * diffuseLight * dotProd; \n"
447 mat->uDiffuse = glGetUniformLocation(mat->prog, "diffuse");
458 glUniform4fv(mat->uDiffuse, 1, mat->diffuse);
481 if (mat->diffuse[3] < 1.0) {
H A Dglm.c343 model->materials[i].diffuse[0] = 0.8;
344 model->materials[i].diffuse[1] = 0.8;
345 model->materials[i].diffuse[2] = 0.8;
346 model->materials[i].diffuse[3] = 1.0;
386 &model->materials[nummaterials].diffuse[0],
387 &model->materials[nummaterials].diffuse[1],
388 &model->materials[nummaterials].diffuse[2]);
410 &model->materials[nummaterials].diffuse[3]);
473 material->diffuse[0], material->diffuse[
[all...]
/xsrc/external/mit/mesa-demos/dist/src/egl/opengles1/
H A Dtorus.c342 static const GLfloat diffuse[4] = {0.7, 0.7, 0.7, 1.0}; local in function:init
353 glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
H A Dpbuffer.c272 static const GLfloat diffuse[4] = {0.7, 0.7, 0.7, 1.0}; local in function:init
283 glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
H A Drender_tex.c311 static const GLfloat diffuse[4] = {0.7, 0.7, 0.7, 1.0}; local in function:init
321 glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
/xsrc/external/mit/MesaLib.old/dist/src/mesa/main/
H A Dffvertex_prog.c1170 struct ureg diffuse = get_lightprod(p, i, 0, STATE_DIFFUSE); local in function:build_lighting
1213 emit_op3(p, OPCODE_MAD, res0, mask0, swizzle1(lit,Y), diffuse, _col0);
1217 release_temp(p, diffuse);
1225 struct ureg diffuse = get_lightprod(p, i, 1, STATE_DIFFUSE); local in function:build_lighting
1272 emit_op3(p, OPCODE_MAD, res0, mask0, swizzle1(lit,Y), diffuse, _bfc0);
1280 release_temp(p, diffuse);
/xsrc/external/mit/MesaLib/dist/src/mesa/main/
H A Dffvertex_prog.c1233 struct ureg diffuse = lightprod_front[i][1]; local in function:build_lighting
1276 emit_op3(p, OPCODE_MAD, res0, mask0, swizzle1(lit,Y), diffuse, _col0);
1280 release_temp(p, diffuse);
1300 struct ureg diffuse = lightprod_back[i][1]; local in function:build_lighting
1347 emit_op3(p, OPCODE_MAD, res0, mask0, swizzle1(lit,Y), diffuse, _bfc0);
1355 release_temp(p, diffuse);
/xsrc/external/mit/xf86-video-vmware/dist/vmwgfx/
H A Dsvga3d_reg.h422 SVGA3D_VERTEXMATERIAL_DIFFUSE = 1, /* Use the value in the diffuse component */
1219 float diffuse[4]; member in struct:__anon70b0d8604408
1529 float diffuse[4]; member in struct:__anon70b0d8605b08

Completed in 26 milliseconds

12