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
1c2c658e
Commit
1c2c658e
authored
Aug 04, 2019
by
chili
Browse files
fix cbuf collision solid sphere x light
parent
f298a1ac
Changes
2
Show whitespace changes
Inline
Side-by-side
hw3d/SolidPS.hlsl
View file @
1c2c658e
cbuffer
CBuf
cbuffer
CBuf
:
register
(
b1
)
{
float4
color
;
};
...
...
hw3d/SolidSphere.cpp
View file @
1c2c658e
...
...
@@ -27,7 +27,7 @@ SolidSphere::SolidSphere( Graphics& gfx,float radius )
dx
::
XMFLOAT3
color
=
{
1.0
f
,
1.0
f
,
1.0
f
};
float
padding
;
}
colorConst
;
AddBind
(
PixelConstantBuffer
<
PSColorConstant
>::
Resolve
(
gfx
,
colorConst
)
);
AddBind
(
PixelConstantBuffer
<
PSColorConstant
>::
Resolve
(
gfx
,
colorConst
,
1u
)
);
AddBind
(
InputLayout
::
Resolve
(
gfx
,
model
.
vertices
.
GetLayout
(),
pvsbc
)
);
...
...
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