Home
last modified time | relevance | path

Searched refs:lightpos (Results 1 – 25 of 113) sorted by relevance

12345

/dports/graphics/glx-utils/demos-5435fc7fbd332e171da9a71e33a9b190e9462cf0/src/demos/
H A Dteapot.c55 static GLfloat lightpos[4]={2.3,0.0,3.0,1.0}; variable
88 GLfloat lightpos[4]) in shadowmatrix()
93 dot = groundplane[X] * lightpos[X] + in shadowmatrix()
94 groundplane[Y] * lightpos[Y] + in shadowmatrix()
95 groundplane[Z] * lightpos[Z] + in shadowmatrix()
96 groundplane[W] * lightpos[W]; in shadowmatrix()
98 shadowMat[0][0] = dot - lightpos[X] * groundplane[X]; in shadowmatrix()
99 shadowMat[1][0] = 0.f - lightpos[X] * groundplane[Y]; in shadowmatrix()
361 glLightfv(GL_LIGHT0,GL_POSITION,lightpos); in drawlight1()
371 glTranslatef(lightpos[0],lightpos[1],lightpos[2]); in drawlight2()
[all …]
H A Ddinoshade.c171 GLfloat lightpos[4]) in shadowMatrix()
176 dot = groundplane[X] * lightpos[X] + in shadowMatrix()
177 groundplane[Y] * lightpos[Y] + in shadowMatrix()
178 groundplane[Z] * lightpos[Z] + in shadowMatrix()
179 groundplane[W] * lightpos[W]; in shadowMatrix()
181 shadowMat[0][0] = dot - lightpos[X] * groundplane[X]; in shadowMatrix()
182 shadowMat[1][0] = 0.f - lightpos[X] * groundplane[Y]; in shadowMatrix()
183 shadowMat[2][0] = 0.f - lightpos[X] * groundplane[Z]; in shadowMatrix()
184 shadowMat[3][0] = 0.f - lightpos[X] * groundplane[W]; in shadowMatrix()
186 shadowMat[X][1] = 0.f - lightpos[Y] * groundplane[X]; in shadowMatrix()
[all …]
H A Dray.c77 static float lightpos[3] = { 2.1, 2.1, 2.8 }; variable
148 lightpos[1] -= 0.1; in key()
151 lightpos[1] += 0.1; in key()
154 lightpos[0] -= 0.1; in key()
157 lightpos[0] += 0.1; in key()
160 lightpos[2] -= 0.1; in key()
163 lightpos[2] += 0.1; in key()
334 vsub(dist, lightpos, p); in seelight()
371 vsub(ldir, lightpos, ppos); in colorcheckmap()
454 vsub(ldir, lightpos, ppos); in updatereflectmap()
[all …]
/dports/graphics/mesa-demos/mesa-demos-8.4.0/src/demos/
H A Dteapot.c55 static GLfloat lightpos[4]={2.3,0.0,3.0,1.0}; variable
88 GLfloat lightpos[4]) in shadowmatrix()
93 dot = groundplane[X] * lightpos[X] + in shadowmatrix()
94 groundplane[Y] * lightpos[Y] + in shadowmatrix()
95 groundplane[Z] * lightpos[Z] + in shadowmatrix()
96 groundplane[W] * lightpos[W]; in shadowmatrix()
98 shadowMat[0][0] = dot - lightpos[X] * groundplane[X]; in shadowmatrix()
99 shadowMat[1][0] = 0.f - lightpos[X] * groundplane[Y]; in shadowmatrix()
361 glLightfv(GL_LIGHT0,GL_POSITION,lightpos); in drawlight1()
371 glTranslatef(lightpos[0],lightpos[1],lightpos[2]); in drawlight2()
[all …]
H A Ddinoshade.c171 GLfloat lightpos[4]) in shadowMatrix()
176 dot = groundplane[X] * lightpos[X] + in shadowMatrix()
177 groundplane[Y] * lightpos[Y] + in shadowMatrix()
178 groundplane[Z] * lightpos[Z] + in shadowMatrix()
179 groundplane[W] * lightpos[W]; in shadowMatrix()
181 shadowMat[0][0] = dot - lightpos[X] * groundplane[X]; in shadowMatrix()
182 shadowMat[1][0] = 0.f - lightpos[X] * groundplane[Y]; in shadowMatrix()
183 shadowMat[2][0] = 0.f - lightpos[X] * groundplane[Z]; in shadowMatrix()
184 shadowMat[3][0] = 0.f - lightpos[X] * groundplane[W]; in shadowMatrix()
186 shadowMat[X][1] = 0.f - lightpos[Y] * groundplane[X]; in shadowMatrix()
[all …]
H A Dray.c77 static float lightpos[3] = { 2.1, 2.1, 2.8 }; variable
148 lightpos[1] -= 0.1; in key()
151 lightpos[1] += 0.1; in key()
154 lightpos[0] -= 0.1; in key()
157 lightpos[0] += 0.1; in key()
160 lightpos[2] -= 0.1; in key()
163 lightpos[2] += 0.1; in key()
334 vsub(dist, lightpos, p); in seelight()
371 vsub(ldir, lightpos, ppos); in colorcheckmap()
454 vsub(ldir, lightpos, ppos); in updatereflectmap()
[all …]
/dports/games/brutalchess/brutalchess-0.5.2/src/
H A Dgamecore.cpp565 GLfloat lightpos[4]; in projectShadows() local
566 lightpos[0] = 6; in projectShadows()
567 lightpos[1] = 12; in projectShadows()
568 lightpos[2] = 10; in projectShadows()
570 lightpos[3] = 1; in projectShadows()
577 mat[0] = lightpos[0]; in projectShadows()
578 mat[4] = lightpos[1]; in projectShadows()
579 mat[8] = lightpos[2]; in projectShadows()
580 mat[12] = lightpos[3]; in projectShadows()
590 lightpos[0] = mat[0] + 4; in projectShadows()
[all …]
/dports/x11/xscreensaver/xscreensaver-5.44/hacks/glx/
H A Dantinspect.c128 const GLfloat lightpos[4]) in shadowmatrix()
133 dot = groundplane[X] * lightpos[X] + in shadowmatrix()
134 groundplane[Y] * lightpos[Y] + in shadowmatrix()
135 groundplane[Z] * lightpos[Z] + in shadowmatrix()
136 groundplane[W] * lightpos[W]; in shadowmatrix()
138 shadowMat[0][0] = dot - lightpos[X] * groundplane[X]; in shadowmatrix()
139 shadowMat[1][0] = 0.f - lightpos[X] * groundplane[Y]; in shadowmatrix()
140 shadowMat[2][0] = 0.f - lightpos[X] * groundplane[Z]; in shadowmatrix()
141 shadowMat[3][0] = 0.f - lightpos[X] * groundplane[W]; in shadowmatrix()
143 shadowMat[X][1] = 0.f - lightpos[Y] * groundplane[X]; in shadowmatrix()
[all …]
H A Dendgame.c612 GLfloat lightpos[4]) in shadowmatrix()
617 dot = groundplane[X] * lightpos[X] + in shadowmatrix()
618 groundplane[Y] * lightpos[Y] + in shadowmatrix()
619 groundplane[Z] * lightpos[Z] + in shadowmatrix()
620 groundplane[W] * lightpos[W]; in shadowmatrix()
622 shadowMat[0][0] = dot - lightpos[X] * groundplane[X]; in shadowmatrix()
623 shadowMat[1][0] = 0.f - lightpos[X] * groundplane[Y]; in shadowmatrix()
624 shadowMat[2][0] = 0.f - lightpos[X] * groundplane[Z]; in shadowmatrix()
625 shadowMat[3][0] = 0.f - lightpos[X] * groundplane[W]; in shadowmatrix()
627 shadowMat[X][1] = 0.f - lightpos[Y] * groundplane[X]; in shadowmatrix()
[all …]
/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/src/osgShadow/
H A DShadowTexture.cpp140 osg::Vec4 lightpos; in cull() local
151 if (matrix) lightpos = light->getPosition() * (*matrix); in cull()
152 else lightpos = light->getPosition(); in cull()
161 lightpos = lightpos * eyeToWorld; in cull()
174 if (lightpos[3]!=0.0) in cull()
176 osg::Vec3 position(lightpos.x(), lightpos.y(), lightpos.z()); in cull()
206 osg::Vec3 lightDir(lightpos.x(), lightpos.y(), lightpos.z()); in cull()
H A DShadowMap.cpp345 osg::Vec4 lightpos; in cull() local
369 lightpos = light->getPosition() * (*matrix); in cull()
374 lightpos = light->getPosition(); in cull()
384 lightpos = lightpos * eyeToWorld; in cull()
399 osg::Vec3 position(lightpos.x(), lightpos.y(), lightpos.z()); in cull()
413 if (lightpos[3]!=0.0) // point light in cull()
415 osg::Vec3 position(lightpos.x(), lightpos.y(), lightpos.z()); in cull()
433 osg::Vec3 lightDir(lightpos.x(), lightpos.y(), lightpos.z()); in cull()
H A DShadowVolume.cpp84 osg::Vec4 lightpos; in init() local
85 lightpos.set(0.5f,0.25f,0.8f,0.0f); in init()
98 _occluder->computeShadowVolumeGeometry(lightpos, *_shadowVolume); in init()
280 osg::Vec4 lightpos; in cull() local
296 if (matrix) lightpos = light->getPosition() * (*matrix); in cull()
297 else lightpos = light->getPosition(); in cull()
307 _ambientLight->setPosition(lightpos); in cull()
311 _diffuseLight->setPosition(lightpos); in cull()
327 if (_lightpos != lightpos && _dynamicShadowVolumes) in cull()
329 _lightpos = lightpos; in cull()
[all …]
/dports/lang/c/c-0.14/examples/
H A Ddinoshade.c167 GLfloat lightpos[4]) in shadowMatrix()
172 dot = groundplane[X] * lightpos[X] + in shadowMatrix()
173 groundplane[Y] * lightpos[Y] + in shadowMatrix()
174 groundplane[Z] * lightpos[Z] + in shadowMatrix()
175 groundplane[W] * lightpos[W]; in shadowMatrix()
177 shadowMat[0][0] = dot - lightpos[X] * groundplane[X]; in shadowMatrix()
178 shadowMat[1][0] = 0.f - lightpos[X] * groundplane[Y]; in shadowMatrix()
179 shadowMat[2][0] = 0.f - lightpos[X] * groundplane[Z]; in shadowMatrix()
180 shadowMat[3][0] = 0.f - lightpos[X] * groundplane[W]; in shadowMatrix()
182 shadowMat[X][1] = 0.f - lightpos[Y] * groundplane[X]; in shadowMatrix()
[all …]
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/src/osgShadow/
H A DShadowTexture.cpp154 osg::Vec4 lightpos; in cull() local
165 if (matrix) lightpos = light->getPosition() * (*matrix); in cull()
166 else lightpos = light->getPosition(); in cull()
175 lightpos = lightpos * eyeToWorld; in cull()
188 if (lightpos[3]!=0.0) in cull()
190 osg::Vec3 position(lightpos.x(), lightpos.y(), lightpos.z()); in cull()
220 osg::Vec3 lightDir(lightpos.x(), lightpos.y(), lightpos.z()); in cull()
H A DShadowMap.cpp381 osg::Vec4 lightpos; in cull() local
405 lightpos = light->getPosition() * (*matrix); in cull()
410 lightpos = light->getPosition(); in cull()
420 lightpos = lightpos * eyeToWorld; in cull()
435 osg::Vec3 position(lightpos.x(), lightpos.y(), lightpos.z()); in cull()
449 if (lightpos[3]!=0.0) // point light in cull()
451 osg::Vec3 position(lightpos.x(), lightpos.y(), lightpos.z()); in cull()
469 osg::Vec3 ortho_lightDir(lightpos.x(), lightpos.y(), lightpos.z()); in cull()
/dports/graphics/blender/blender-2.91.0/intern/cycles/kernel/
H A Dkernel_light_background.h141 KernelGlobals *kg, float3 P, int index, float3 *lightpos, float3 *dir) in background_portal_data_fetch_and_check_side() argument
146 *lightpos = make_float3(klight->co[0], klight->co[1], klight->co[2]); in background_portal_data_fetch_and_check_side()
150 if (dot(*dir, P - *lightpos) > 1e-4f) in background_portal_data_fetch_and_check_side()
166 float3 lightpos, dir; in background_portal_pdf() local
188 lightpos, in background_portal_pdf()
201 float3 D = normalize_len(lightpos - P, &t); in background_portal_pdf()
221 float3 lightpos, dir; in background_num_possible_portals() local
246 float3 lightpos, dir; in background_portal_sample() local
262 lightpos += ellipse_sample(axisu * 0.5f, axisv * 0.5f, randu, randv); in background_portal_sample()
264 D = normalize_len(lightpos - P, &t); in background_portal_sample()
[all …]
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/examples/osgshadow/
H A Dosgshadow.cpp772 osg::Vec4 lightpos(0.0,0.0,1,0.0); in main() local
780 …while ( arguments.read("--light-pos", lightpos.x(), lightpos.y(), lightpos.z(), lightpos.w())) { k… in main()
781 …while ( arguments.read("--light-pos", lightpos.x(), lightpos.y(), lightpos.z())) { lightpos.w()=1.… in main()
782 …while ( arguments.read("--light-dir", lightpos.x(), lightpos.y(), lightpos.z())) { lightpos.w()=0.… in main()
1036 lightpos.x() = bb.xMin()+(bb.xMax()-bb.xMin())*lightpos.x(); in main()
1037 lightpos.y() = bb.yMin()+(bb.yMax()-bb.yMin())*lightpos.y(); in main()
1038 lightpos.z() = bb.zMin()+(bb.zMax()-bb.zMin())*lightpos.z(); in main()
1066 osg::Vec3 lightdir = center - osg::Vec3(lightpos.x(), lightpos.y(), lightpos.z()); in main()
1163 if (lightpos.w()==1.0) in main()
1173 osg::Vec3f lightDir(-lightpos.x(),-lightpos.y(),-lightpos.z()); in main()
[all …]
/dports/games/tenebrae/tenebrae_0/
H A Dgl_brushinstant.c103 linstant->lightpos[0] = res[0]; in R_SetupBrushObjectSpace()
104 linstant->lightpos[1] = res[1]; in R_SetupBrushObjectSpace()
105 linstant->lightpos[2] = res[2]; in R_SetupBrushObjectSpace()
201 dist = ins->lightpos[0] - plane->dist; in R_IsVisibleSurf()
204 dist = ins->lightpos[1] - plane->dist; in R_IsVisibleSurf()
207 dist = ins->lightpos[2] - plane->dist; in R_IsVisibleSurf()
267 VectorSubtract ( (*v2) ,ins->lightpos, v1); in R_CalcBrushVolumeVerts()
325 dist = ins->lightpos[0] - splitplane->dist; in R_CalcBrushAttenCoords()
328 dist = ins->lightpos[1] - splitplane->dist; in R_CalcBrushAttenCoords()
340 ProjectPlane(ins->lightpos,s,t,nearPt); in R_CalcBrushAttenCoords()
[all …]
/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/examples/osgshadow/
H A Dosgshadow.cpp774 osg::Vec4 lightpos(0.0,0.0,1,0.0); in main() local
782 …while ( arguments.read("--light-pos", lightpos.x(), lightpos.y(), lightpos.z(), lightpos.w())) { k… in main()
783 …while ( arguments.read("--light-pos", lightpos.x(), lightpos.y(), lightpos.z())) { lightpos.w()=1.… in main()
784 …while ( arguments.read("--light-dir", lightpos.x(), lightpos.y(), lightpos.z())) { lightpos.w()=0.… in main()
1045 lightpos.x() = bb.xMin()+(bb.xMax()-bb.xMin())*lightpos.x(); in main()
1046 lightpos.y() = bb.yMin()+(bb.yMax()-bb.yMin())*lightpos.y(); in main()
1047 lightpos.z() = bb.zMin()+(bb.zMax()-bb.zMin())*lightpos.z(); in main()
1075 osg::Vec3 lightdir = center - osg::Vec3(lightpos.x(), lightpos.y(), lightpos.z()); in main()
1174 if (lightpos.w()==1.0) in main()
1184 osg::Vec3f lightDir(-lightpos.x(),-lightpos.y(),-lightpos.z()); in main()
[all …]
/dports/games/netherearth/netherearth-0.51/
H A Dnethersave.cpp63 fprintf(fp,"%.8f %.8f %.8f %.8f\n",lightpos[0],lightpos[1],lightpos[2],lightpos[3]); in save_game()
233 …if (4!=fscanf(fp,"%f %f %f %f",&(lightpos[0]),&(lightpos[1]),&(lightpos[2]),&(lightpos[3]))) retur… in load_game()
H A Dnetherdebug.cpp66 fprintf(fp,"LIGHTPOS: %.8f %.8f %.8f %.8f\n",lightpos[0],lightpos[1],lightpos[2],lightpos[3]); in save_debug_report()
H A Dnether.cpp51 lightpos[0]=-1000; in NETHER()
52 lightpos[1]=-3000; in NETHER()
53 lightpos[2]=5000; in NETHER()
54 lightpos[3]=1; in NETHER()
55 lightposv.x=lightpos[0]; in NETHER()
56 lightposv.y=lightpos[1]; in NETHER()
57 lightposv.z=lightpos[2]; in NETHER()
59 lightpos[0]=0; in NETHER()
60 lightpos[1]=0; in NETHER()
61 lightpos[2]=5000; in NETHER()
[all …]
/dports/databases/grass7/grass-7.8.6/lib/gis/
H A Dview.c87 v->lightpos[0] = w->west; in G_get_3dview_defaults()
88 v->lightpos[1] = w->north; in G_get_3dview_defaults()
89 v->lightpos[2] = (w->east - w->west) / 2.0; in G_get_3dview_defaults()
90 v->lightpos[3] = 1.0; /* local source */ in G_get_3dview_defaults()
223 fprintf(fp, "LIGHTPOS: %f %f %f %f\n", View->lightpos[0], in G_put_3dview()
224 View->lightpos[1], View->lightpos[2], View->lightpos[3]); in G_put_3dview()
426 sscanf(buffer, "%*s%f%f%f%f", &(View->lightpos[0]), in G_get_3dview()
427 &(View->lightpos[1]), &(View->lightpos[2]), in G_get_3dview()
428 &(View->lightpos[3])); in G_get_3dview()
/dports/games/scummvm/scummvm-2.5.1/engines/icb/
H A Ddebug.cpp156 PXvector lightpos, tiepos; in Show_lit_unlit_diagnostics() local
162 PXWorldToFilm(pos, camera, result, lightpos); in Show_lit_unlit_diagnostics()
165 int32 x0 = (int32)(lightpos.x + (SCREEN_WIDTH / 2)); in Show_lit_unlit_diagnostics()
166 int32 y0 = (int32)(SCREEN_DEPTH / 2 - lightpos.y); in Show_lit_unlit_diagnostics()
169 …ECT_HEIGHT / 2, x0 + LIGHT_RECT_WIDTH / 2, y0 + LIGHT_RECT_HEIGHT / 2, penrgb, (int32)-lightpos.z); in Show_lit_unlit_diagnostics()
/dports/math/R-cran-igraph/igraph/src/simpleraytracer/
H A DRIgraphRay.cpp41 SEXP lightpos, SEXP lightcolor, SEXP width, in R_igraph_getsphere() argument
50 int no_lights=GET_LENGTH(lightpos); in R_igraph_getsphere()
63 double *lpos=REAL(VECTOR_ELT(lightpos, i)); in R_igraph_getsphere()

12345