mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024310: TKOpenGl - GLSL compatibility issues
Lights defintion clean up: - remove duplicated enumeration TLightType (equals to Visual3d_TypeOfLightSource) - remove unused fields from Graphic3d_CLight - OpenGl_Light, reuse Graphic3d_CLight definition Phong GLSL program: - move out cumulative ambient light intencity from limited list of lights - compatibility issues, replace array of structures (light sources, materials, clipping planes) with arrays of primitive types New Draw Harness command vlight to alter light sources definition. OpenGl_ShaderProgram::Initialize() - add missing Linker log
This commit is contained in:
@@ -215,6 +215,12 @@ public:
|
||||
return aSumm += theRight;
|
||||
}
|
||||
|
||||
//! Unary -.
|
||||
NCollection_Vec4 operator-() const
|
||||
{
|
||||
return NCollection_Vec4 (-x(), -y(), -z(), -w());
|
||||
}
|
||||
|
||||
//! Compute per-component subtraction.
|
||||
NCollection_Vec4& operator-= (const NCollection_Vec4& theDec)
|
||||
{
|
||||
|
Reference in New Issue
Block a user