Commit 1c2c658e authored by chili's avatar chili
Browse files

fix cbuf collision solid sphere x light

parent f298a1ac
cbuffer CBuf
cbuffer CBuf : register(b1)
{
float4 color;
};
......
......@@ -27,7 +27,7 @@ SolidSphere::SolidSphere( Graphics& gfx,float radius )
dx::XMFLOAT3 color = { 1.0f,1.0f,1.0f };
float padding;
} colorConst;
AddBind( PixelConstantBuffer<PSColorConstant>::Resolve( gfx,colorConst ) );
AddBind( PixelConstantBuffer<PSColorConstant>::Resolve( gfx,colorConst,1u ) );
AddBind( InputLayout::Resolve( gfx,model.vertices.GetLayout(),pvsbc ) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment