Skip to content

fix(Property): stop setSpecularPower from overwriting roughness#3503

Open
PaulHax wants to merge 1 commit intoKitware:masterfrom
PaulHax:property-decouple-specular-power
Open

fix(Property): stop setSpecularPower from overwriting roughness#3503
PaulHax wants to merge 1 commit intoKitware:masterfrom
PaulHax:property-decouple-specular-power

Conversation

@PaulHax
Copy link
Copy Markdown
Collaborator

@PaulHax PaulHax commented May 7, 2026

Drop the setSpecularPower override that also writes roughness, leaving
the plain macro.setGet setter behind.

I think the override existed to auto-derive a PBR roughness for WebGL code
that only set the Phong specularPower. But Phong and PBR are parallel
rendering paths, not a migration — so the bridge silently corrupts roughness
for any caller that sets both.

Drop the setSpecularPower override that also writes roughness, leaving
the plain macro.setGet setter behind. Property-bag sets are now
commutative with respect to specularPower and roughness, like every
other PBR field on vtkProperty.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant