You copied the Doc URL to your clipboard.

4.4.1. Shader Preview

The Shader Preview view provides visual feedback about the currently selected shader effect. For information about selecting a shader effect, see Shader Control. The current shader effect is displayed at the top of the view. The view is mainly occupied by the Shader preview, that shows a preview of how the currently selected shader effect looks when rendered on the current renderer.

When a preview is being displayed, you can right-click on the preview to save the preview frames as a series of image files.

For more information on using the Shader Preview view, see Rendering the shader effect.

Animation transport

The animation transport contains a set of buttons to control the animation of shaders that have more than one frame. See Figure 4.4:

Figure 4.4. Animation transport controls

Animation transport controls

Table 4.1 describes the use of the slider and buttons:

Table 4.1. Animation transport buttons
ButtonDescription
SliderThe slider at the top shows the position in the current animation, and can also be dragged to move through the animation.
Rewind to StartSet the current frame to the initial frame.
Play in ReversePlay from the current frame to the initial frame.
StopStop the animation.
Play ForwardPlay from the current frame to the final frame.
Fast Forward to EndSet the current frame to the final frame.

Toolbar

The toolbar menu of the Shader Preview view contains a set of buttons that control the current renderer. See Figure 4.5:

Figure 4.5. Toolbar buttons

Toolbar buttons

Table 4.2 describes the toolbar buttons:

Table 4.2. Toolbar buttons
ButtonNameDescription
Compare FramesCompare the currently displayed frame with last frame rendered.
Save Current FrameSave the currently displayed frame to disk.
Save All FramesSave all the frames of the current shader effect to disk.
Render Single FrameRender a single frame of the current shader effect.
Render All FramesRender all the frames, as specified by Number of Frames in the Shader Control view, of the current shader effect.
Set Preview SizeChange the size if the preview area.
Select Default Rendering ModeChange the default rendering mode. This preference is synchronised with the Automatically Render setting on the Shader Development Studio preference pane, see Automatically Render.
Select Renderer

Select a renderer to render the current shader effect. This list is populated from the Renderers preference pane, see Renderers.

At the end of the list is Manage Renderers. This provides a shortcut to the Renderers preferences page. See Renderers.


Context menu

The Context menu is displayed by right-clicking over the animation. The buttons on the Context menu are described in Table 4.3:

Table 4.3. Context buttons
Menu itemDescription
Save Current FrameSave the currently displayed frame to disk.
Save All FramesSave all the frames of the current animation to disk.
Set Background ColorSet the color to render the background in the preview. This setting is synonymous with the glClearColor OpenGL ES 2.0 function.

Was this page helpful? Yes No