mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibGL+LibSoftGPU: Enumize material front/back face selection
This commit is contained in:
parent
64dfb3a28f
commit
3609ffc450
Notes:
sideshowbarker
2024-07-17 20:42:57 +09:00
Author: https://github.com/gmta
Commit: 3609ffc450
Pull-request: https://github.com/SerenityOS/serenity/pull/11960
Reviewed-by: https://github.com/Quaker762 ✅
5 changed files with 24 additions and 16 deletions
|
@ -1143,9 +1143,9 @@ void Device::set_light_state(unsigned int light_id, Light const& light)
|
|||
m_lights.at(light_id) = light;
|
||||
}
|
||||
|
||||
void Device::set_material_state(unsigned int material_id, Material const& material)
|
||||
void Device::set_material_state(Face face, Material const& material)
|
||||
{
|
||||
m_materials.at(material_id) = material;
|
||||
m_materials[face] = material;
|
||||
}
|
||||
|
||||
void Device::set_raster_position(RasterPosition const& raster_position)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue