Added irradiance map for IBL in scene-view demo 05/294905/1
authorRichard <r.huang@samsung.com>
Wed, 28 Jun 2023 10:37:38 +0000 (11:37 +0100)
committerRichard <r.huang@samsung.com>
Wed, 28 Jun 2023 10:37:38 +0000 (11:37 +0100)
Change-Id: I3301b57c68ba45d565c9a7065e8f6a3d235bfd9f

examples/scene-view/scene-view-example.cpp
resources/images/veste_oberhaus_irradiance.png [new file with mode: 0644]

index 4e81b8c..f8def91 100644 (file)
@@ -28,7 +28,8 @@ using namespace Scene3D;
 
 namespace
 {
-const char* CUBEMAP_SKY_BOX_URL = DEMO_IMAGE_DIR "veste_oberhaus_cubemap.png";
+const char* CUBEMAP_SKY_BOX_URL    = DEMO_IMAGE_DIR "veste_oberhaus_cubemap.png";
+const char* CUBEMAP_IRRADIANCE_URL = DEMO_IMAGE_DIR "veste_oberhaus_irradiance.png";
 const char* CAMERA_NAME("MyCamera");
 
 const char*       MODEL_URL = DEMO_MODEL_DIR "SphereMetallic.gltf";
@@ -71,7 +72,7 @@ private:
       {Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER},
       {Actor::Property::SIZE, MODEL_SIZE},
     });
-    model.SetImageBasedLightSource(CUBEMAP_SKY_BOX_URL, CUBEMAP_SKY_BOX_URL);
+    model.SetImageBasedLightSource(CUBEMAP_IRRADIANCE_URL, CUBEMAP_SKY_BOX_URL);
     sceneView.Add(model);
 
     // Create a new camera and reparent as we want to rotate the camera around the origin
diff --git a/resources/images/veste_oberhaus_irradiance.png b/resources/images/veste_oberhaus_irradiance.png
new file mode 100644 (file)
index 0000000..fdb2347
Binary files /dev/null and b/resources/images/veste_oberhaus_irradiance.png differ