| 73 | } |
| 74 | |
| 75 | void EnvMap::setTransform(const float4x4& xform) |
| 76 | { |
| 77 | float3 rotation; |
| 78 | // Extract rotation from the computed transform |
| 79 | math::extractEulerAngleXYZ(xform, rotation.x, rotation.y, rotation.z); |
| 80 | setRotation(math::degrees(rotation)); |
| 81 | } |
| 82 | |
| 83 | void EnvMap::setIntensity(float intensity) |
| 84 | { |
no test coverage detected