Mali GPU Shader Development Studio User Guide - ARM ...
Mali GPU Shader Development Studio User Guide - ARM ...
Mali GPU Shader Development Studio User Guide - ARM ...
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
The <strong>Shader</strong> <strong>Development</strong> <strong>Studio</strong>3.5 <strong>Shader</strong> animationThe <strong>Shader</strong> <strong>Development</strong> <strong>Studio</strong> also supports shader animation. This can be used to see how ashader effect changes over time. This section describes how to set up a shader for animation andhow to animate the shader.3.5.1 Setting up a shader to use animationA shader is animated using a key framing method. Values are set for the initial frame and finalframe, the <strong>Shader</strong> <strong>Development</strong> <strong>Studio</strong> then interpolates the values between these two frames tocreate the animation effect.The Environment Mapping shader demo provided in the content directory is set up to useanimation. To view how animation has been setup for this shader:1. Open the project that you created containing the Example content provided with the<strong>Shader</strong> <strong>Development</strong> <strong>Studio</strong> software. See Importing existing <strong>Shader</strong> effects andconfigurations on page 3-14.2. In the <strong>Shader</strong> Control view, select ExampleContent → Demo 07 - EnvironmentMapping.The <strong>Shader</strong> Preview is updated to show a custom geometry called <strong>ARM</strong>, with environmentmapping applied. See Figure 3-23:Figure 3-23 <strong>ARM</strong> geometry3. The <strong>Shader</strong> Control view and the <strong>Shader</strong> Uniforms view set up the key framingparameters for the shader animation.In the Camera control group box in the <strong>Shader</strong> Control view, values are set for:• camera position for the first frame, this is also the camera position used to rendersingle-frame shaders• camera position of the last frame and the number of frames to render. SeeFigure 3-24 on page 3-20:DUI0504C Copyright © 2009-2011 <strong>ARM</strong>. All rights reserved. 3-19ID011412Non-Confidential - Beta