.. | .. |
---|
426 | 426 | |
---|
427 | 427 | static java.util.Vector<Object3D> listUI = new java.util.Vector<Object3D>(); |
---|
428 | 428 | |
---|
| 429 | + // This is to refresh the UI of the material panel. |
---|
| 430 | + boolean patchMaterial; |
---|
| 431 | + |
---|
429 | 432 | void SetupMenu() |
---|
430 | 433 | { |
---|
431 | 434 | frame.setMenuBar(menuBar = new MenuBar()); |
---|
.. | .. |
---|
1689 | 1692 | objectPanel.setIconAt(4, GetIcon("icons/XYZ.png")); |
---|
1690 | 1693 | objectPanel.setToolTipTextAt(4, "XYZ/RGB transform"); |
---|
1691 | 1694 | |
---|
| 1695 | + patchMaterial = true; |
---|
| 1696 | + cameraView.patchMaterial = this; |
---|
| 1697 | + objectPanel.setSelectedIndex(1); |
---|
| 1698 | + |
---|
1692 | 1699 | /* |
---|
1693 | 1700 | aConstraints.gridx = 0; |
---|
1694 | 1701 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1886 | 1893 | |
---|
1887 | 1894 | // Skin |
---|
1888 | 1895 | colorField.setFloat(material.color); |
---|
1889 | | - saturationField.setFloat(material.modulation); |
---|
| 1896 | + float saturation = material.modulation; |
---|
| 1897 | + |
---|
| 1898 | + if (!cameraView.Skinshader) |
---|
| 1899 | + { |
---|
| 1900 | + saturation /= 1.5; |
---|
| 1901 | + } |
---|
| 1902 | + |
---|
| 1903 | + saturationField.setFloat(saturation); |
---|
| 1904 | + |
---|
1890 | 1905 | subsurfaceField.setFloat(material.subsurface); |
---|
1891 | 1906 | selfshadowField.setFloat(material.diffuseness); |
---|
1892 | 1907 | diffusenessField.setFloat(material.factor); |
---|