/dports/graphics/glx-utils/demos-5435fc7fbd332e171da9a71e33a9b190e9462cf0/src/demos/ |
H A D | fplight.c | 19 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 D | arbfplight.c | 20 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 D | spectex.c | 27 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 D | cuberender.c | 36 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 D | shadowtex.c | 55 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 D | fplight.c | 19 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 D | arbfplight.c | 20 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 D | spectex.c | 27 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 D | cuberender.c | 36 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 D | shadowtex.c | 55 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 D | shadows_light.vs | 3 uniform vec3 LightPos; 18 Dist = dot(LightPos, SurfNormal) - SurfDist; 19 VertToLight.xyz = LightPos.xyz - gl_Vertex.xyz;
|
H A D | shadows_model_shadow.vs | 4 uniform vec3 LightPos; 16 vec3 Dir = normalize(Vert.xyz - LightPos); 18 Vert.xyz = LightPos + Offset * Dir;
|
H A D | shadows_model_light.vs | 4 uniform vec3 LightPos; 27 VertToLight.xyz = LightPos.xyz - Vert.xyz;
|
/dports/graphics/glx-utils/demos-5435fc7fbd332e171da9a71e33a9b190e9462cf0/src/tests/ |
H A D | debugger.c | 459 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 D | gl_model.cpp | 537 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 D | gl_poly.cpp | 575 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 D | ReflectionTab.java | 512 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 D | envmap.vert | 94 //LightIntensity = max(dot(normalize(LightPos - EyeDir), Normal), 0.0);
|
/dports/astro/openuniverse/openuniverse-1.0beta3/src/ |
H A D | ou.h | 72 extern GLfloat LightPos[4];
|
/dports/games/alienarena/alienarena-7.66/source/ref_gl/ |
H A D | r_program.c | 1361 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 D | r_program.c | 1361 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 D | wings_light.erl | 503 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 D | specExamples.frag | 80 vec4 LightPos;
|
/dports/emulators/ppsspp/ppsspp-1.12.3/ext/glslang/Test/ |
H A D | specExamples.frag | 80 vec4 LightPos;
|
/dports/graphics/glslang/glslang-11.7.1/Test/ |
H A D | specExamples.frag | 80 vec4 LightPos;
|