mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024322: TKOpenGl - light sources management inconsistency
Fixed pipeline - accumulate all ambient light sources. Fix clearing of all light sources.
This commit is contained in:
@@ -292,23 +292,6 @@ is
|
||||
-- Category: Class methods
|
||||
--------------------------
|
||||
|
||||
Limit ( myclass )
|
||||
returns Integer from Standard;
|
||||
---Level: Internal
|
||||
---Purpose: Maximum number of activatable light sources.
|
||||
---Category: Class methods
|
||||
|
||||
----------------------------
|
||||
-- Category: Private methods
|
||||
----------------------------
|
||||
|
||||
Identification ( me )
|
||||
returns Integer from Standard
|
||||
is static private;
|
||||
---Level: Internal
|
||||
---Purpose: Returns the light identification.
|
||||
---Category: Private methods
|
||||
|
||||
IsValid ( myclass;
|
||||
AAngle : Real from Standard )
|
||||
returns Boolean from Standard
|
||||
|
@@ -354,25 +354,6 @@ void Visual3d_Light::SetPosition (const Graphic3d_Vertex& thePos)
|
||||
myCLight.Position.z() = float (thePos.Z());
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : Limit
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
Standard_Integer Visual3d_Light::Limit()
|
||||
{
|
||||
// Old method, replaced by GraphicDriver::InquireLightLimit()
|
||||
return 0;
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : Identification
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
Standard_Integer Visual3d_Light::Identification() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : IsValid
|
||||
// purpose :
|
||||
|
@@ -730,6 +730,7 @@ void Visual3d_View::UpdateLights()
|
||||
MyGraphicDriver->InquireLightLimit());
|
||||
if (MyCView.Context.NbActiveLight < 1)
|
||||
{
|
||||
MyGraphicDriver->SetLight (MyCView);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user