The plugin automatically populates a few parameters which your shader can use. OBS log file, which you can view with the Help -> Log Files menu in OBS. In many cases the output of the effect parser will be written to the Simply see your source render nothing at all. Note that if your shader has syntax errors and fails to compile, OBS does not provide any error messages you will You set default values as a normal assignment uniform string notes = 'my note', except for float4 Variable names are displayed in the GUI with underscore replaced with space uniform float Variable_Name becomes Variable Name. Notes and instructions, but could be used in an effect or shader. ( float4 parameters will be interpreted by the properties window as colors.) string is used for Currently, only int, float, bool, string, texture2d, and float4 In the properties window to have their values set. Or other parts of the effect for some reason, you can check the "Use Effect File (.effect)" option.Īny parameters you add to your shader (defined as uniform variables) will be detected by the plugin and exposed If you wish to customize the vertex shader Standard template to add a basic vertex shader and other boilerplate. Normally, all that's required for OBS purposes is a pixel shader, so the plugin will wrap your shader text with a That need to render outside the bounds of the original source. The option is provided to render extra pixels on each side of the source. This can also be used to reload an external file if changes have been made. Note that you will need to use the "Reload effect" button to apply your changes. If you are entering your shader text directly, To changeīetween the two modes, use the "Load shader text from file" toggle. Shaders can either be entered directly in a text box in the filter properties, or loaded from a file. The filter can be added to any source through the "Filters" option when right-clicking on a source.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |