Add shadow test to sprites
This commit is contained in:
parent
818b72fbf5
commit
850e61d1c9
5 changed files with 139 additions and 26 deletions
|
|
@ -105,4 +105,9 @@ void FShadowMap::UploadLights()
|
|||
glBindBuffer(GL_SHADER_STORAGE_BUFFER, mLightList);
|
||||
glBufferData(GL_SHADER_STORAGE_BUFFER, sizeof(float) * mLights.Size(), &mLights[0], GL_STATIC_DRAW);
|
||||
glBindBuffer(GL_SHADER_STORAGE_BUFFER, oldBinding);
|
||||
}
|
||||
}
|
||||
|
||||
bool FShadowMap::ShadowTest(ADynamicLight *light, const DVector3 &pos)
|
||||
{
|
||||
return mLightBSP.ShadowTest(light->Pos(), pos);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue