[#18847] Material.c Python API calls

Adds access to...
- Anisotropy
- Mirr Threshold
- Trans Threshold

Breaks rule of no additions but python data access is quite safe, vray exporter needed these attributes.

[#18891] BGE Convert script Python 2.5 compatible
This commit is contained in:
2009-06-09 12:18:20 +00:00
parent 105d3fd323
commit e4b427bb59
3 changed files with 70 additions and 1 deletions

View File

@@ -285,6 +285,15 @@ class Material:
@ivar sampGlossTra: Refraction glossy samples.
Value is clamped to the range [1,1024].
@type sampGlossTra: int
@ivar anisotropy: The shape of the reflection, from 0.0 (circular) to 1.0 (fully stretched along the tangent).
Value is clamped to the range [0.0,1.0].
@type anisotropy: float
@ivar threshMir: Threshold below which reflections will not be computed.
Value is clamped to the range [0.0,1.0].
@type threshMir: float
@ivar threshTra: threshold below which refractions will not be computed.
Value is clamped to the range [0.0,1.0].
@type threshTra: float
@ivar rayMirrDepth: Amount of raytrace inter-reflections.
Value is clamped to the range [0,10].
@type rayMirrDepth: int