add_layer_snippet


Description:

public void add_layer_snippet (int layer, Snippet snippet)

Adds a shader snippet that will hook on to the given layer of the pipeline.

The exact part of the pipeline that the snippet wraps around depends on the hook that is given to Snippet. Note that some hooks can't be used with a layer and need to be added with add_snippet instead.

Parameters:

this

A Pipeline

layer

The layer to hook the snippet to

snippet

A Snippet