Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
e22407dc
Commit
e22407dc
authored
Jul 17, 1995
by
Ken Martin
Browse files
some minor fixes
parent
c4b96f9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OglrLgt.cc
View file @
e22407dc
...
...
@@ -88,16 +88,13 @@ void vtkOglrLight::Render(vtkLight *lgt, vtkOglrRenderer *ren,int light_index)
Info
[
2
]
=
dz
;
glLightfv
(
light_index
,
GL_SPOT_DIRECTION
,
Info
);
Info
[
0
]
=
lgt
->
GetExponent
();
glLightfv
(
light_index
,
GL_SPOT_EXPONENT
,
Info
);
Info
[
0
]
=
lgt
->
GetConeAngle
();
glLightfv
(
light_index
,
GL_SPOT_CUTOFF
,
Info
);
glLightf
(
light_index
,
GL_SPOT_EXPONENT
,
lgt
->
GetExponent
());
glLightf
(
light_index
,
GL_SPOT_CUTOFF
,
lgt
->
GetConeAngle
());
float
*
AttenuationValues
=
lgt
->
GetAttenuationValues
();
glLightf
v
(
light_index
,
GL_CONSTANT_ATTENUATION
,
AttenuationValues
);
glLightf
v
(
light_index
,
GL_LINEAR_ATTENUATION
,
AttenuationValues
+
1
);
glLightf
v
(
light_index
,
GL_QUADRATIC_ATTENUATION
,
AttenuationValues
+
2
);
glLightf
(
light_index
,
GL_CONSTANT_ATTENUATION
,
AttenuationValues
[
0
]
);
glLightf
(
light_index
,
GL_LINEAR_ATTENUATION
,
AttenuationValues
[
1
]
);
glLightf
(
light_index
,
GL_QUADRATIC_ATTENUATION
,
AttenuationValues
[
2
]
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment