From: David Steele Date: Thu, 18 Dec 2014 19:50:34 +0000 (+0000) Subject: Added precision to shader variables. X-Git-Tag: dali_1.0.24~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F35%2F32535%2F1;p=platform%2Fcore%2Fuifw%2Fdali-demo.git Added precision to shader variables. Change-Id: I6a60c432fac7a1da6c2f478c81bec18efdf29c94 Signed-off-by: David Steele --- diff --git a/examples/new-window/new-window-example.cpp b/examples/new-window/new-window-example.cpp index 14445ac..ff17e0f 100644 --- a/examples/new-window/new-window-example.cpp +++ b/examples/new-window/new-window-example.cpp @@ -24,7 +24,7 @@ class NewWindowController; namespace { -const char * gModelFile = DALI_MODEL_DIR "AlbumCute.dae"; +const char * gModelFile = DALI_MODEL_DIR "AlbumCute.dali-bin"; const char * const BACKGROUND_IMAGE( DALI_IMAGE_DIR "background-2.jpg" ); const char * const TOOLBAR_IMAGE( DALI_IMAGE_DIR "top-bar.png" ); const char * const LOSE_CONTEXT_IMAGE( DALI_IMAGE_DIR "icon-cluster-wobble.png" ); @@ -39,12 +39,12 @@ Application gApplication; NewWindowController* gNewWindowController(NULL); const char*const FRAG_SHADER= - "uniform float alpha;\n" + "uniform mediump float alpha;\n" "\n" "void main()\n" "{\n" - " vec4 fragColor = texture2D(sTexture, vTexCoord);\n" - " vec4 fxColor = texture2D(sEffect, vTexCoord);\n" + " mediump vec4 fragColor = texture2D(sTexture, vTexCoord);\n" + " mediump vec4 fxColor = texture2D(sEffect, vTexCoord);\n" " gl_FragColor = mix(fragColor,fxColor, alpha);\n" "}\n"; @@ -449,7 +449,7 @@ void NewWindowController::OnModelLoaded( Model model ) { if( model.GetLoadingState() == ResourceLoadingSucceeded ) { - std::cout << "Succeeded loading collada model" << std::endl; + std::cout << "Succeeded loading model" << std::endl; mModelActor = ModelActorFactory::BuildActorTree(mModel, ""); // Gets root actor mModelActor.SetSize(250.0f, 250.0f); mModelActor.SetPosition(0.0f, 200.0f, 70.0f); @@ -468,7 +468,7 @@ void NewWindowController::OnModelLoaded( Model model ) } else { - std::cout << "Failed loading collada model" << std::endl; + std::cout << "Failed loading model" << std::endl; mApplication.Quit(); } }