VR-Vantage 3.0 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
8.7 - VR-Vantage Shader Architecture

Table of Contents

See exampleCustomShaders for an example of how to modify the VR-Vantage shaders.

8.7.1 OsgEarth Virtual Programs

VR-Vantage takes advantage of the osgEarth framework for shader composition called virtual programs. These virtual programs allow multiple libraries to contribute to a shader program without needing to have the full program available and even apply the same shader function to multiple programs. OsgEarth has in-depth documentation here: http://docs.osgearth.org/en/latest/developer/shader_composition.html

8.7.2 Global Shader Variables

VR-Vantage shaders use global variables to pass information between virtual program functions. Here is a list of some important globals you may want to use, what they are used for, and when you can modify them. All of these globals are only available in the fragment shader.

8.7.3 Shader Variants

Variants are used to pass data between the vertex shader and the fragment shader. The following list describes some important variants used by the VR-Vantage shaders, when they are set, and when they are used:

[<< Example of Transforming Nodes Programmatically] [Home] [Top of Page]



Copyright © 2005-2022 MAK Technologies. All Rights Reserved (www.mak.com)