mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 11:04:02 +02:00
commit
1b669af79d
3 changed files with 1 additions and 3 deletions
|
@ -48,7 +48,6 @@ QScriptValue HMDScriptingInterface::getHUDLookAtPosition2D(QScriptContext* conte
|
||||||
|
|
||||||
QScriptValue HMDScriptingInterface::getHUDLookAtPosition3D(QScriptContext* context, QScriptEngine* engine) {
|
QScriptValue HMDScriptingInterface::getHUDLookAtPosition3D(QScriptContext* context, QScriptEngine* engine) {
|
||||||
glm::vec3 result;
|
glm::vec3 result;
|
||||||
HMDScriptingInterface* hmdInterface = &HMDScriptingInterface::getInstance();
|
|
||||||
if ((&HMDScriptingInterface::getInstance())->getHUDLookAtPosition3D(result)) {
|
if ((&HMDScriptingInterface::getInstance())->getHUDLookAtPosition3D(result)) {
|
||||||
return qScriptValueFromValue<glm::vec3>(engine, result);
|
return qScriptValueFromValue<glm::vec3>(engine, result);
|
||||||
}
|
}
|
||||||
|
|
|
@ -136,10 +136,10 @@ ApplicationOverlay::ApplicationOverlay() :
|
||||||
_textureFov(glm::radians(DEFAULT_OCULUS_UI_ANGULAR_SIZE)),
|
_textureFov(glm::radians(DEFAULT_OCULUS_UI_ANGULAR_SIZE)),
|
||||||
_textureAspectRatio(1.0f),
|
_textureAspectRatio(1.0f),
|
||||||
_lastMouseMove(0),
|
_lastMouseMove(0),
|
||||||
|
_magnifier(true),
|
||||||
_alpha(1.0f),
|
_alpha(1.0f),
|
||||||
_oculusUIRadius(1.0f),
|
_oculusUIRadius(1.0f),
|
||||||
_crosshairTexture(0),
|
_crosshairTexture(0),
|
||||||
_magnifier(true),
|
|
||||||
_previousBorderWidth(-1),
|
_previousBorderWidth(-1),
|
||||||
_previousBorderHeight(-1),
|
_previousBorderHeight(-1),
|
||||||
_previousMagnifierBottomLeft(),
|
_previousMagnifierBottomLeft(),
|
||||||
|
|
|
@ -76,7 +76,6 @@ void Light::setSpotAngle(float angle) {
|
||||||
if (angle <= 0.f) {
|
if (angle <= 0.f) {
|
||||||
angle = 0.0f;
|
angle = 0.0f;
|
||||||
}
|
}
|
||||||
float cosAngle = cos(angle);
|
|
||||||
editSchema()._spot.x = cos(angle);
|
editSchema()._spot.x = cos(angle);
|
||||||
editSchema()._spot.y = sin(angle);
|
editSchema()._spot.y = sin(angle);
|
||||||
editSchema()._spot.z = angle;
|
editSchema()._spot.z = angle;
|
||||||
|
|
Loading…
Reference in a new issue