feat: add spot light shadows with a tilled buffer
This commit is contained in:
@@ -118,6 +118,10 @@ void LightComponent::ImGuiInspector() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_Type == LightType::Spot) {
|
||||
ImGui::Checkbox("Cast Shadows", &m_CastShadows);
|
||||
}
|
||||
|
||||
float range = m_Range;
|
||||
if (ImGui::DragFloat("Range", &range, 0.05f, 0.01f)) {
|
||||
SetRange(range);
|
||||
|
||||
Reference in New Issue
Block a user