Commit c87b45adbe5451b950357e913e7ea025adba8dfb
1 parent
9d6dba46
Added irradiance map for IBL in scene-view demo
Change-Id: I3301b57c68ba45d565c9a7065e8f6a3d235bfd9f
Showing
2 changed files
with
3 additions
and
2 deletions
examples/scene-view/scene-view-example.cpp
| ... | ... | @@ -28,7 +28,8 @@ using namespace Scene3D; |
| 28 | 28 | |
| 29 | 29 | namespace |
| 30 | 30 | { |
| 31 | -const char* CUBEMAP_SKY_BOX_URL = DEMO_IMAGE_DIR "veste_oberhaus_cubemap.png"; | |
| 31 | +const char* CUBEMAP_SKY_BOX_URL = DEMO_IMAGE_DIR "veste_oberhaus_cubemap.png"; | |
| 32 | +const char* CUBEMAP_IRRADIANCE_URL = DEMO_IMAGE_DIR "veste_oberhaus_irradiance.png"; | |
| 32 | 33 | const char* CAMERA_NAME("MyCamera"); |
| 33 | 34 | |
| 34 | 35 | const char* MODEL_URL = DEMO_MODEL_DIR "SphereMetallic.gltf"; |
| ... | ... | @@ -71,7 +72,7 @@ private: |
| 71 | 72 | {Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER}, |
| 72 | 73 | {Actor::Property::SIZE, MODEL_SIZE}, |
| 73 | 74 | }); |
| 74 | - model.SetImageBasedLightSource(CUBEMAP_SKY_BOX_URL, CUBEMAP_SKY_BOX_URL); | |
| 75 | + model.SetImageBasedLightSource(CUBEMAP_IRRADIANCE_URL, CUBEMAP_SKY_BOX_URL); | |
| 75 | 76 | sceneView.Add(model); |
| 76 | 77 | |
| 77 | 78 | // Create a new camera and reparent as we want to rotate the camera around the origin | ... | ... |
resources/images/veste_oberhaus_irradiance.png
0 → 100644
1 MB