- // Create an ImageActor for rendering from the scene texture to the bloom texture
- mBloomExtractImageActor = Toolkit::ImageView::New();
- mBloomExtractImageActor.SetParentOrigin( ParentOrigin::CENTER );
-
- // Create shader used for extracting the bright parts of an image
- Property::Map customShader;
- customShader[ "fragmentShader" ] = BLOOM_EXTRACT_FRAGMENT_SOURCE;
- Property::Map rendererMap;
- rendererMap.Insert( "rendererType", "image" );
- rendererMap.Insert( "shader", customShader );
- mBloomExtractImageActor.SetProperty( Toolkit::ImageView::Property::IMAGE, rendererMap );
-
- // Create an ImageActor for compositing the result (scene and bloom textures) to output
- mCompositeImageActor = Toolkit::ImageView::New();
- mCompositeImageActor.SetParentOrigin( ParentOrigin::CENTER );
+ // Create an image view for rendering from the scene texture to the bloom texture
+ mBloomExtractImageView = Toolkit::ImageView::New();
+ mBloomExtractImageView.SetParentOrigin( ParentOrigin::CENTER );