You copied the Doc URL to your clipboard.

4.4.2. Shader Control

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.

Performance info ...

Displays a dialog box that provides statistics on the performance of the current shader effect. See Figure 4.6:

Figure 4.6. Performance Info dialog box

Performance Info dialog box

Camera control

The Camera control group box controls the camera positions and settings for rendering shader effects. The settings are described in Table 4.4:

Table 4.4. Camera control buttons
SettingDescription
First FrameSets the X, Y, Z and zoom values for the camera in the first frame.
Last FrameSets the X, Y, Z and zoom values for the camera in the last frame.
Orthographic ProjectionIf this box is checked, the geometry is rendered in orthographic projection mode in the Shader Preview view.
Number of FramesSets 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.

Scene control

The Scene Control group box controls how a scene is rendered in the Shader Preview view. The settings are described in Table 4.5:

Table 4.5. Scene control buttons
ButtonDescription
Enable BlendingEnables the blending capability provided by OpenGL ES.
Configure Blending OptionsDisplay a dialog to configure how OpenGL ES performs blending.
GeometrySelects the geometry to render the shader effect on.

Toolbar

The toolbar menu of the Shader Control view contains a set of items that control the current shader effect.

Table 4.6. Toolbar control buttons
ButtonNameDescription
Copy valuesDisplays a dialog that enables you to copy all shader sources, control settings, attribute settings, and uniform settings.
Open Source for this ShaderOpen any shader source files associate with the currently selected shader effect.
Reload Shader ConfigurationReload the shader effect’s attributes, uniforms, camera and scene control settings from the data stored in the shader configuration.
Save Settings to Shader ConfigurationWrite 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.


Was this page helpful? Yes No