add_snippet


Description:

public void add_snippet (Snippet snippet)

Adds a shader snippet to this.

The snippet will wrap around or replace some part of the pipeline as defined by the hook point in snippet. Note that some hook points are specific to a layer and must be added with add_layer_snippet instead.

Parameters:

this

A Pipeline

snippet

The Snippet to add to the vertex processing hook