Declares the input variables and provides a helper function transform() that computes the object-to-world space transformation and related vertex attributes.
More...
Declares the input variables and provides a helper function transform() that computes the object-to-world space transformation and related vertex attributes.
This is packaged separately from UniversalSurface_render.vrt to make it easy to compute the object-space positions procedurally in related shaders but still use the material and lighting model from UniversalSurface.
G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License