Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Clark Lin
hw3d
Commits
dac6adaf
Commit
dac6adaf
authored
Apr 13, 2019
by
chili
Browse files
lotsa light params
parent
bc89efc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw3d/PointLight.cpp
View file @
dac6adaf
...
@@ -17,6 +17,18 @@ void PointLight::SpawnControlWindow() noexcept
...
@@ -17,6 +17,18 @@ void PointLight::SpawnControlWindow() noexcept
ImGui
::
SliderFloat
(
"X"
,
&
cbData
.
pos
.
x
,
-
60.0
f
,
60.0
f
,
"%.1f"
);
ImGui
::
SliderFloat
(
"X"
,
&
cbData
.
pos
.
x
,
-
60.0
f
,
60.0
f
,
"%.1f"
);
ImGui
::
SliderFloat
(
"Y"
,
&
cbData
.
pos
.
y
,
-
60.0
f
,
60.0
f
,
"%.1f"
);
ImGui
::
SliderFloat
(
"Y"
,
&
cbData
.
pos
.
y
,
-
60.0
f
,
60.0
f
,
"%.1f"
);
ImGui
::
SliderFloat
(
"Z"
,
&
cbData
.
pos
.
z
,
-
60.0
f
,
60.0
f
,
"%.1f"
);
ImGui
::
SliderFloat
(
"Z"
,
&
cbData
.
pos
.
z
,
-
60.0
f
,
60.0
f
,
"%.1f"
);
ImGui
::
Text
(
"Intensity/Color"
);
ImGui
::
SliderFloat
(
"Intensity"
,
&
cbData
.
diffuseIntensity
,
0.01
f
,
2.0
f
,
"%.2f"
,
2
);
ImGui
::
ColorEdit3
(
"Diffuse Color"
,
&
cbData
.
diffuseColor
.
x
);
ImGui
::
ColorEdit3
(
"Ambient"
,
&
cbData
.
ambient
.
x
);
ImGui
::
ColorEdit3
(
"Material"
,
&
cbData
.
materialColor
.
x
);
ImGui
::
Text
(
"Falloff"
);
ImGui
::
SliderFloat
(
"Constant"
,
&
cbData
.
attConst
,
0.05
f
,
10.0
f
,
"%.2f"
,
4
);
ImGui
::
SliderFloat
(
"Linear"
,
&
cbData
.
attLin
,
0.0001
f
,
4.0
f
,
"%.4f"
,
8
);
ImGui
::
SliderFloat
(
"Quadratic"
,
&
cbData
.
attQuad
,
0.0000001
f
,
10.0
f
,
"%.7f"
,
10
);
if
(
ImGui
::
Button
(
"Reset"
)
)
if
(
ImGui
::
Button
(
"Reset"
)
)
{
{
Reset
();
Reset
();
...
...
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