History

Adding a simple manual exposure control to configure the tonemapping and expose it to js. Add a convenient way to access the Job._concept._data with template

samcake committed 10 years ago

Commit d2ebaef1 parent 2bbd5d818 files · +165 −12Browse files

Showing the changes to libraries/script-engine/src/SceneScriptingInterface.h (1 of 18 files). Show all

Unified · Split

libraries/script-engine/src/SceneScriptingInterface.h+4−0
@@ -118,6 +118,9 @@ public: · 117 unmodified lines
118 Q_INVOKABLE void setEngineDisplayHitEffect(bool display) { _drawHitEffect = display; }118 Q_INVOKABLE void setEngineDisplayHitEffect(bool display) { _drawHitEffect = display; }
119 Q_INVOKABLE bool doEngineDisplayHitEffect() { return _drawHitEffect; }119 Q_INVOKABLE bool doEngineDisplayHitEffect() { return _drawHitEffect; }
120 120
121 Q_INVOKABLE void setEngineToneMappingExposure(float exposure) { _engineToneMappingExposure = exposure; }
122 Q_INVOKABLE float getEngineToneMappingExposure() { return _engineToneMappingExposure; }
123
121signals:124signals:
122 void shouldRenderAvatarsChanged(bool shouldRenderAvatars);125 void shouldRenderAvatarsChanged(bool shouldRenderAvatars);
123 void shouldRenderEntitiesChanged(bool shouldRenderEntities);126 void shouldRenderEntitiesChanged(bool shouldRenderEntities);
@@ -154,6 +157,7 @@ protected: · 30 unmodified lines
154 157
155 bool _drawHitEffect = false;158 bool _drawHitEffect = false;
156 159
160 float _engineToneMappingExposure = 0.0f;
157};161};
158 162
159#endif // hifi_SceneScriptingInterface_h163#endif // hifi_SceneScriptingInterface_h

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t