The Shader Control view controls the Shader Preview view. It is used for:
selecting the shader effect to be rendered
selecting the geometry to render the effect onto
selecting the number of frames to be rendered
controlling the camera position for the first and last frame.
controlling the number of frames to be rendered.
The top of the Shader Control view displays the currently selected shader effect.
For more information on using the Shader Control view, see Rendering with different geometries.
Displays a dialog box that provides statistics on the performance of the current shader effect. See Figure 4.6:
The Camera control group box controls the camera positions and settings for rendering shader effects. The settings are described in Table 4.4:
|First Frame||Sets the X, Y, Z and zoom values for the camera in the first frame.|
|Last Frame||Sets the X, Y, Z and zoom values for the camera in the last frame.|
|Orthographic Projection||If this box is checked, the geometry is rendered in orthographic projection mode in the Shader Preview view.|
|Number of Frames||Sets the number of frames to render for shader animation. The values of the uniforms, attributes, and camera values for the shader are interpolated over this number of frames.|
The Scene Control group box controls how a scene is rendered in the Shader Preview view. The settings are described in Table 4.5:
|Enable Blending||Enables the blending capability provided by OpenGL ES.|
|Configure Blending Options||Display a dialog to configure how OpenGL ES performs blending.|
|Geometry||Selects the geometry to render the shader effect on.|
The toolbar menu of the Shader Control view contains a set of items that control the current shader effect.
|Copy values||Displays a dialog that enables you to copy all shader sources, control settings, attribute settings, and uniform settings.|
|Open Source for this Shader||Open any shader source files associate with the currently selected shader effect.|
|Reload Shader Configuration||Reload the shader effect’s attributes, uniforms, camera and scene control settings from the data stored in the shader configuration.|
|Save Settings to Shader Configuration||Write the current shader effect’s uniform, attribute, camera control and scene control values back into the shader configuration.|
|Select Shader to Render|
Click this button to open a menu system that enables navigation to all known shader effects in all open projects.
Click on any effect displayed to cause the Shader Preview view to be updated with the selected shader effect. The automatic rendering preference is used to determine if the selected shader is rendered. See Automatically Render.