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
f763531d
Commit
f763531d
authored
Apr 09, 2019
by
chili
Browse files
fix PS constants stuff
parent
0b69ae86
Changes
2
Hide whitespace changes
Inline
Side-by-side
hw3d/Box.cpp
View file @
f763531d
...
...
@@ -44,12 +44,6 @@ Box::Box( Graphics& gfx,
AddStaticBind
(
std
::
make_unique
<
PixelShader
>
(
gfx
,
L"PhongPS.cso"
)
);
AddStaticIndexBuffer
(
std
::
make_unique
<
IndexBuffer
>
(
gfx
,
model
.
indices
)
);
struct
PSLightConstants
{
dx
::
XMVECTOR
pos
;
};
AddStaticBind
(
std
::
make_unique
<
PixelConstantBuffer
<
PSLightConstants
>>
(
gfx
)
);
const
std
::
vector
<
D3D11_INPUT_ELEMENT_DESC
>
ied
=
{
...
...
hw3d/PointLight.cpp
View file @
f763531d
...
...
@@ -37,4 +37,5 @@ void PointLight::Draw( Graphics& gfx ) const noexcept(!IS_DEBUG)
void
PointLight
::
Bind
(
Graphics
&
gfx
)
const
noexcept
{
cbuf
.
Update
(
gfx
,
PointLightCBuf
{
pos
}
);
cbuf
.
Bind
(
gfx
);
}
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