Home
last modified time | relevance | path

Searched refs:LightPos (Results 1 – 25 of 49) sorted by relevance

12

/dports/graphics/glx-utils/demos-5435fc7fbd332e171da9a71e33a9b190e9462cf0/src/demos/
H A Dfplight.c19 static GLfloat LightPos[4] = { 0.0, 10.0, 20.0, 1.0 }; variable
41 NAMED_PARAMETER4FV(FragProg, "LightPos", LightPos); in Display()
48 glLightfv(GL_LIGHT0, GL_POSITION, LightPos); in Display()
82 LightPos[0] += Delta; in Idle()
83 if (LightPos[0] > 25.0) in Idle()
85 else if (LightPos[0] <- 25.0) in Idle()
117 LightPos[0] -= 1.0; in Key()
120 LightPos[0] += 1.0; in Key()
H A Darbfplight.c20 static GLfloat LightPos[4] = { 0.0, 10.0, 20.0, 1.0 }; variable
57 normalize( pos, LightPos ); in Redisplay()
58 pos[3] = LightPos[3]; in Redisplay()
66 glLightfv(GL_LIGHT0, GL_POSITION, LightPos); in Redisplay()
98 LightPos[0] += Delta; in Idle()
99 if (LightPos[0] > 25.0) in Idle()
101 else if (LightPos[0] <- 25.0) in Idle()
133 LightPos[0] -= 1.0; in Key()
136 LightPos[0] += 1.0; in Key()
H A Dspectex.c27 static GLfloat LightPos[4] = {10.0, 10.0, 10.0, 1.0}; variable
47 LightPos[0] += Delta * dt; in Idle()
48 if (LightPos[0]>15.0 || LightPos[0]<-15.0) in Idle()
59 glLightfv(GL_LIGHT0, GL_POSITION, LightPos); in Display()
H A Dcuberender.c36 static GLfloat LightPos[4]; variable
111 glTranslatef(LightPos[0], LightPos[1], LightPos[2]); in DrawLightSource()
241 glLightfv(GL_LIGHT0, GL_POSITION, LightPos); in SetupCubeFaceView()
394 ComputeLightPos(LightDist, LightLatitude, LightLongitude, LightPos); in Display()
419 glLightfv(GL_LIGHT0, GL_POSITION, LightPos); in Display()
H A Dshadowtex.c55 static GLfloat LightPos[4]; variable
561 LightPos, SpotDir); in Display()
564 MakeShadowMatrix(LightPos, SpotDir, SpotAngle, ShadowNear, ShadowFar); in Display()
590 glLightfv(GL_LIGHT0, GL_POSITION, LightPos); in Display()
615 EnableDistanceTexgen(LightPos, SpotDir, ShadowNear+Bias, ShadowFar); in Display()
/dports/graphics/mesa-demos/mesa-demos-8.4.0/src/demos/
H A Dfplight.c19 static GLfloat LightPos[4] = { 0.0, 10.0, 20.0, 1.0 }; variable
41 NAMED_PARAMETER4FV(FragProg, "LightPos", LightPos); in Display()
48 glLightfv(GL_LIGHT0, GL_POSITION, LightPos); in Display()
82 LightPos[0] += Delta; in Idle()
83 if (LightPos[0] > 25.0) in Idle()
85 else if (LightPos[0] <- 25.0) in Idle()
117 LightPos[0] -= 1.0; in Key()
120 LightPos[0] += 1.0; in Key()
H A Darbfplight.c20 static GLfloat LightPos[4] = { 0.0, 10.0, 20.0, 1.0 }; variable
57 normalize( pos, LightPos ); in Redisplay()
58 pos[3] = LightPos[3]; in Redisplay()
66 glLightfv(GL_LIGHT0, GL_POSITION, LightPos); in Redisplay()
98 LightPos[0] += Delta; in Idle()
99 if (LightPos[0] > 25.0) in Idle()
101 else if (LightPos[0] <- 25.0) in Idle()
133 LightPos[0] -= 1.0; in Key()
136 LightPos[0] += 1.0; in Key()
H A Dspectex.c27 static GLfloat LightPos[4] = {10.0, 10.0, 10.0, 1.0}; variable
47 LightPos[0] += Delta * dt; in Idle()
48 if (LightPos[0]>15.0 || LightPos[0]<-15.0) in Idle()
59 glLightfv(GL_LIGHT0, GL_POSITION, LightPos); in Display()
H A Dcuberender.c36 static GLfloat LightPos[4]; variable
111 glTranslatef(LightPos[0], LightPos[1], LightPos[2]); in DrawLightSource()
241 glLightfv(GL_LIGHT0, GL_POSITION, LightPos); in SetupCubeFaceView()
394 ComputeLightPos(LightDist, LightLatitude, LightLongitude, LightPos); in Display()
419 glLightfv(GL_LIGHT0, GL_POSITION, LightPos); in Display()
H A Dshadowtex.c55 static GLfloat LightPos[4]; variable
561 LightPos, SpotDir); in Display()
564 MakeShadowMatrix(LightPos, SpotDir, SpotAngle, ShadowNear, ShadowFar); in Display()
590 glLightfv(GL_LIGHT0, GL_POSITION, LightPos); in Display()
615 EnableDistanceTexgen(LightPos, SpotDir, ShadowNear+Bias, ShadowFar); in Display()
/dports/games/vavoom/vavoom-1.33/basev/common/glshaders/
H A Dshadows_light.vs3 uniform vec3 LightPos;
18 Dist = dot(LightPos, SurfNormal) - SurfDist;
19 VertToLight.xyz = LightPos.xyz - gl_Vertex.xyz;
H A Dshadows_model_shadow.vs4 uniform vec3 LightPos;
16 vec3 Dir = normalize(Vert.xyz - LightPos);
18 Vert.xyz = LightPos + Offset * Dir;
H A Dshadows_model_light.vs4 uniform vec3 LightPos;
27 VertToLight.xyz = LightPos.xyz - Vert.xyz;
/dports/graphics/glx-utils/demos-5435fc7fbd332e171da9a71e33a9b190e9462cf0/src/tests/
H A Ddebugger.c459 static GLfloat LightPos[4] = { 0.0, 10.0, 20.0, 1.0 }; variable
480 NAMED_PARAMETER4FV(FragProg, "LightPos", LightPos); in Display()
486 glLightfv(GL_LIGHT0, GL_POSITION, LightPos); in Display()
518 LightPos[0] += Delta; in Idle()
519 if (LightPos[0] > 25.0) in Idle()
521 else if (LightPos[0] <- 25.0) in Idle()
553 LightPos[0] -= 1.0; in Key()
556 LightPos[0] += 1.0; in Key()
/dports/games/vavoom/vavoom-1.33/source/
H A Dgl_model.cpp537 void VOpenGLDrawer::BeginModelsLightPass(TVec& LightPos, float Radius, vuint32 Colour) in BeginModelsLightPass() argument
542 p_glUniform3fARB(ShadowsModelLightLightPosLoc, LightPos.x, LightPos.y, LightPos.z); in BeginModelsLightPass()
621 void VOpenGLDrawer::BeginModelsShadowsPass(TVec& LightPos, float LightRadius) in BeginModelsShadowsPass() argument
625 p_glUniform3fARB(ShadowsModelShadowLightPosLoc, LightPos.x, LightPos.y, LightPos.z); in BeginModelsShadowsPass()
637 float Inter, bool Interpolate, const TVec& LightPos, float LightRadius) in DrawAliasModelShadow() argument
648 TVec LocalLightPos = InvRotationMatrix.Transform(LightPos); in DrawAliasModelShadow()
H A Dgl_poly.cpp575 void VOpenGLDrawer::RenderSurfaceShadowVolume(surface_t *surf, TVec& LightPos, float Radius) in RenderSurfaceShadowVolume() argument
578 float dist = DotProduct(LightPos, surf->plane->normal) - surf->plane->dist; in RenderSurfaceShadowVolume()
591 v[i] = Normalise(surf->verts[i] - LightPos); in RenderSurfaceShadowVolume()
593 v[i] += LightPos; in RenderSurfaceShadowVolume()
628 void VOpenGLDrawer::BeginLightPass(TVec& LightPos, float Radius, vuint32 Colour) in BeginLightPass() argument
642 p_glUniform3fARB(ShadowsLightLightPosLoc, LightPos.x, LightPos.y, LightPos.z); in BeginLightPass()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.swt/examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/
H A DReflectionTab.java512 float[] LightPos = { 0.0f, 2.0f, 7.0f, 1.0f }; in renderScene() local
530 GL.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, LightPos); in renderScene()
542 GL.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, LightPos); in renderScene()
/dports/cad/meshlab/meshlab-Meshlab-2020.05/distrib/shaders/
H A Denvmap.vert94 //LightIntensity = max(dot(normalize(LightPos - EyeDir), Normal), 0.0);
/dports/astro/openuniverse/openuniverse-1.0beta3/src/
H A Dou.h72 extern GLfloat LightPos[4];
/dports/games/alienarena/alienarena-7.66/source/ref_gl/
H A Dr_program.c1361 uniform vec3 LightPos;
1372 vec3 light_dir = normalize( LightPos - vert );
1422 uniform vec3 LightPos;
1440 lightDir = tangentSpaceTransform * (LightPos - gl_Vertex.xyz);
1455 texco.s = texco.s - LightPos.x/256.0;
1456 texco.t = texco.t + LightPos.y/256.0;
/dports/games/alienarena-data/alienarena-7.66/source/ref_gl/
H A Dr_program.c1361 uniform vec3 LightPos;
1372 vec3 light_dir = normalize( LightPos - vert );
1422 uniform vec3 LightPos;
1440 lightDir = tangentSpaceTransform * (LightPos - gl_Vertex.xyz);
1455 texco.s = texco.s - LightPos.x/256.0;
1456 texco.t = texco.t + LightPos.y/256.0;
/dports/graphics/wings/wings-8d019ebe48/src/
H A Dwings_light.erl503 LightPos = light_pos(We),
505 Vec = e3d_vec:norm_sub(Aim, LightPos),
511 {X,Y,Z} = LightPos,
522 LightPos = light_pos(We),
537 {X,Y,Z} = LightPos,
/dports/emulators/ppsspp-qt5/ppsspp-1.12.3/ext/glslang/Test/
H A DspecExamples.frag80 vec4 LightPos;
/dports/emulators/ppsspp/ppsspp-1.12.3/ext/glslang/Test/
H A DspecExamples.frag80 vec4 LightPos;
/dports/graphics/glslang/glslang-11.7.1/Test/
H A DspecExamples.frag80 vec4 LightPos;

12