1
0
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:
duv
2013-11-13 21:07:32 +04:00
committed by bugmaster
parent 79d580f2ea
commit 4fe9ad57df
9 changed files with 322 additions and 67 deletions

View File

@@ -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

View File

@@ -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 :

View File

@@ -730,6 +730,7 @@ void Visual3d_View::UpdateLights()
MyGraphicDriver->InquireLightLimit());
if (MyCView.Context.NbActiveLight < 1)
{
MyGraphicDriver->SetLight (MyCView);
return;
}