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 ->
221221| - | - | - |
222222| ![ 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 ) |
223223
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+
224241[ ** sample project...** ] ( https://github.com/SceneView/sceneform-android/tree/master/samples/environment-lights )
225242
226243
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ data class LightEstimationConfig @JvmOverloads constructor(
141141
142142
143143 /* *
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
145145 *
146146 * The reflected environment will the default one or the one defined by
147147 * [com.google.ar.sceneform.SceneView.environment]
You can’t perform that action at this time.
0 commit comments