File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
core/src/main/java/com/gorisse/thomas/sceneform/light Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,23 @@ sceneView.session?.resolveCloudAnchor(cloudAnchorId)?.let { resolvedAnchor ->
221
221
| - | - | - |
222
222
| ![ Environment Lights 04] ( https://user-images.githubusercontent.com/6597529/131822279-613edadf-bdaf-4ae9-9da6-d620504af5f0.jpg ) | ![ Environment Lights 05] ( https://user-images.githubusercontent.com/6597529/135060214-b9b9be36-b0d2-4929-b957-c3a04fe40d1e.png ) | ![ Environment Lights 06] ( https://user-images.githubusercontent.com/6597529/131825447-d52d8c3e-2801-4d6a-8c51-8b32231c14d6.jpg ) |
223
223
224
+ ``` kotlin
225
+ // Use this mode if you want your objects to be more like if they where real
226
+ arSceneView.lightEstimationConfig = LightEstimationConfig .REALISTIC
227
+ ```
228
+ ``` kotlin
229
+ // Use this mode if you want your objects to be more spectacular
230
+ arSceneView.lightEstimationConfig = LightEstimationConfig .SPECTACULAR
231
+ ```
232
+ ``` kotlin
233
+ // Use this mode if you only want to apply ARCore lights colors and intensity
234
+ arSceneView.lightEstimationConfig = LightEstimationConfig .AMBIENT_INTENSITY
235
+ ```
236
+ ``` kotlin
237
+ // Use this mode if you want to disable all ARCore light estimation lights
238
+ arSceneView.lightEstimationConfig = LightEstimationConfig .AMBIENT_INTENSITY
239
+ ```
240
+
224
241
[ ** sample project...** ] ( https://github.com/SceneView/sceneform-android/tree/master/samples/environment-lights )
225
242
226
243
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ data class LightEstimationConfig @JvmOverloads constructor(
141
141
142
142
143
143
/* *
144
- * ### Use this mode if you only want to disable all ARCore light estimation lights
144
+ * ### Use this mode if you want to disable all ARCore light estimation lights
145
145
*
146
146
* The reflected environment will the default one or the one defined by
147
147
* [com.google.ar.sceneform.SceneView.environment]
You can’t perform that action at this time.
0 commit comments