|
12 | 12 | "OcclusionProgram": "materials7.ptx::__closesthit__occlusion", |
13 | 13 | } |
14 | 14 | """ |
15 | | -Super-fast material, color is not shaded anyhow. Use color components range <0; 1>. |
| 15 | +Super-fast material, color is not shaded anyhow. Use color components range ``<0; 1>``. |
16 | 16 | """ |
17 | 17 |
|
18 | 18 | m_eye_normal_cos = { |
|
21 | 21 | } |
22 | 22 | """ |
23 | 23 | Fast material, color is shaded by the cos(eye-hit-normal). Use color components range |
24 | | -<0; 1>. |
| 24 | +``<0; 1>``. |
25 | 25 | """ |
26 | 26 |
|
27 | 27 | m_diffuse = { |
|
31 | 31 | } |
32 | 32 | """ |
33 | 33 | Lambertian diffuse material. Note it is available by default under the name "diffuse". |
34 | | -Use color components range <0; 1>. |
| 34 | +Use color components range ``<0; 1>``. |
35 | 35 | """ |
36 | 36 |
|
37 | 37 | m_matt_diffuse = { |
|
41 | 41 | "VarFloat": { "base_roughness": 1 } |
42 | 42 | } |
43 | 43 | """ |
44 | | -Oren-Nayar diffuse material. Surface roughness range is <0; inf), 0 is equivalent to |
| 44 | +Oren-Nayar diffuse material. Surface roughness range is ``<0; inf)``, 0 is equivalent to |
45 | 45 | the Lambertian "diffuse" material. |
46 | 46 | """ |
47 | 47 |
|
|
68 | 68 | Reflective mirror, quite simple to calculate and therefore fast material. Note, this material |
69 | 69 | has default values: ``reflectivity_index = 1`` and ``reflectivity_range = 1``. In this configuration |
70 | 70 | the shading algorithm overrides ``surface_albedo`` with the color assigned to each primitive (RGB |
71 | | -range <0; 1>), which results with colorized reflections. |
| 71 | +range ``<0; 1>``), which results with colorized reflections. |
72 | 72 | """ |
73 | 73 |
|
74 | 74 | m_metallic = { |
|
168 | 168 | } |
169 | 169 | """ |
170 | 170 | Glass, with reflection and refraction simulated. Color components meaning is "attenuation length" |
171 | | -and the color range is <0; inf>. |
| 171 | +and the color range is <0; inf>. Set ``radiation_length > 0`` to enable sub-surface scattering. It |
| 172 | +is supported in background modes :attr:`plotoptix.enums.MissProgram.AmbientAndVolume`, |
| 173 | +:attr:`plotoptix.enums.MissProgram.TextureFixed` and :attr:`plotoptix.enums.MissProgram.TextureEnvironment`, |
| 174 | +see also :meth:`plotoptix.NpOptiX.set_background_mode`. Use ``subsurface_color`` to set diffuse color of |
| 175 | +scattering (RGB components range should be ``<0; 1>``). Volumes can emit light in ``subsurface_color`` |
| 176 | +if ``light_emission > 0``. |
172 | 177 | """ |
173 | 178 |
|
174 | 179 | m_matt_glass = { |
|
188 | 193 | } |
189 | 194 | """ |
190 | 195 | Glass with surface roughness configured to obtain matt appearance. Color components meaning is |
191 | | -"attenuation length" and the color range is <0; inf>. |
| 196 | +"attenuation length" and the color range is <0; inf>. Set ``radiation_length > 0`` to enable |
| 197 | +sub-surface scattering. It is supported in background modes :attr:`plotoptix.enums.MissProgram.AmbientAndVolume`, |
| 198 | +:attr:`plotoptix.enums.MissProgram.TextureFixed` and :attr:`plotoptix.enums.MissProgram.TextureEnvironment`, |
| 199 | +see also :meth:`plotoptix.NpOptiX.set_background_mode`. Use ``subsurface_color`` to set diffuse color of |
| 200 | +scattering (RGB components range should be ``<0; 1>``). Volumes can emit light in ``subsurface_color`` |
| 201 | +if ``light_emission > 0``. |
192 | 202 | """ |
193 | 203 |
|
194 | 204 | m_dispersive_glass = { |
|
208 | 218 | """ |
209 | 219 | Clear glass, with reflection and refraction simulated. Refraction index is varying with the wavelength, |
210 | 220 | resulting with the light dispersion. Color components meaning is "attenuation length" |
211 | | -and the range is <0; inf>. |
| 221 | +and the range is <0; inf>. Set ``radiation_length > 0`` to enable sub-surface scattering. It |
| 222 | +is supported in background modes :attr:`plotoptix.enums.MissProgram.AmbientAndVolume`, |
| 223 | +:attr:`plotoptix.enums.MissProgram.TextureFixed` and :attr:`plotoptix.enums.MissProgram.TextureEnvironment`, |
| 224 | +see also :meth:`plotoptix.NpOptiX.set_background_mode`. Use ``subsurface_color`` to set diffuse color of |
| 225 | +scattering (RGB components range should be ``<0; 1>``). Volumes can emit light in ``subsurface_color`` |
| 226 | +if ``light_emission > 0``. |
212 | 227 | """ |
213 | 228 |
|
214 | 229 | m_thin_walled = { |
|
226 | 241 | """ |
227 | 242 | Ideal for the soap-like bubbles. Reflection amount depends on the refraction index, however, there is |
228 | 243 | no refraction on crossing the surface. Reflections can be textured or colorized with the primitive |
229 | | -colors, and the color values range is <0; inf>. |
| 244 | +colors, and the color values range is ``<0; inf)``. |
230 | 245 | """ |
0 commit comments