DiscussionsIssue archiveOCCT:Visualization

Archived issue #0032201

Visualization, TKOpenGl - unify Phong/PBR material properties getters

Open CASCADEOCCT:Visualizationclosed6 public notes

Search issues

Description

Declarations.glsl declares material accessors as separate front/back getters for Common definition (occFrontMaterial_Diffuse/occBackMaterial_Diffuse)
and as unified getter taking Boolean flag for PBR properties (like occPBRMaterial_Color(in bool theIsFront)).

It is proposed following a common approach.

Steps to reproduce

N/A

Public activity

6 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


No new revisions were added by this update.
02Author
Patch is ready for review
- OCCT: branch CR32201.

http://jenkins-test-12.nnov.opencascade.com:8080/view/CR32201-master-KGV/
03Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
04Commenter 4
The patch was reviewed
05Commenter 1
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 17753.85000000016 / 17750.250000000156 [+0.02%]
Products
Total CPU difference: 11481.660000000102 / 11540.5800000001 [-0.51%]
Windows-64-VC14:
OCCT
Total CPU difference: 19361.09375 / 19341.28125 [+0.10%]
Products
Total CPU difference: 12879.75 / 12869.921875 [+0.08%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
06Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]