Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
C-Fu
OpenGL
Commits
5ea90723
Commit
5ea90723
authored
Jan 20, 2017
by
Anakin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed intensity of background
parent
af94ecd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
QtMeshViewer/Header/OglViewerWidget.h
QtMeshViewer/Header/OglViewerWidget.h
+1
-1
QtMeshViewer/Source/OglViewerWidget.cpp
QtMeshViewer/Source/OglViewerWidget.cpp
+1
-1
No files found.
QtMeshViewer/Header/OglViewerWidget.h
View file @
5ea90723
...
...
@@ -39,7 +39,7 @@ private:
struct
{
QVector3D
position
=
{
1
,
1
,
1
};
QVector3D
intensities
=
{
1
,
1
,
1
};
QVector3D
intensities
=
{
1
.0
,
1.0
,
1.0
};
float
attenuationFactor
=
0.2
f
;
float
ambientCoefficient
=
0.005
f
;
}
m_light
;
...
...
QtMeshViewer/Source/OglViewerWidget.cpp
View file @
5ea90723
...
...
@@ -336,7 +336,7 @@ void OglViewerWidget::toggleLight()
if
(
m_lightOn
)
{
m_backgroundColor
=
{
m_light
.
intensities
.
x
()
/
10
0
,
m_light
.
intensities
.
y
()
/
10
0
,
m_light
.
intensities
.
z
()
/
10
0
,
1.0
};
m_backgroundColor
=
{
m_light
.
intensities
.
x
()
/
5
0
,
m_light
.
intensities
.
y
()
/
5
0
,
m_light
.
intensities
.
z
()
/
5
0
,
1.0
};
updateLightPosition
();
}
...
...
Write
Preview
Markdown
is supported
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