VuoShader shader definitions.
- Copyright
- Copyright © 2012–2017 Kosada Incorporated. This code may be modified and distributed under the terms of the MIT License. For more information, see http://vuo.org/license.
|
static VuoShader | VuoShader_makeDefaultShaderInternal (void) |
| Helper for VuoShader_makeDefaultShader.
|
|
VuoShader | VuoShader_makeDefaultShader (void) |
| Returns a shared instance of the default (unlit checkerboard) shader.
|
|
VuoShader | VuoShader_makeUnlitImageShader (VuoImage image, VuoReal alpha) |
| Returns a shader that renders objects with an image (ignoring lighting).
|
|
VuoShader | VuoShader_makeUnlitAlphaPassthruImageShader (VuoImage image, bool flipped) |
| Returns a shader that renders objects with an image (ignoring lighting).
|
|
VuoShader | VuoShader_makeGlTextureRectangleShader (VuoImage image, VuoReal alpha) |
| Returns a shader that renders objects with an image (ignoring lighting).
|
|
VuoShader | VuoShader_makeGlTextureRectangleAlphaPassthruShader (VuoImage image, bool flipped) |
| Returns a shader that renders objects with an image (ignoring lighting).
|
|
VuoShader | VuoShader_makeUnlitColorShader (VuoColor color) |
| Returns a shader that renders a solid color .
|
|
VuoShader | VuoShader_makeUnlitCircleShader (VuoColor color, VuoReal sharpness) |
| Returns a shader that renders a solid color circle.
|
|
VuoShader | VuoShader_makeUnlitRoundedRectangleShader (VuoColor color, VuoReal sharpness, VuoReal roundness, VuoReal aspect) |
| Returns a shader that renders a solid color rounded rectangle.
|
|
VuoShader | VuoShader_makeLitColorShader (VuoColor diffuseColor, VuoColor highlightColor, VuoReal shininess) |
| Returns a shader that renders a color with lighting.
|
|
VuoShader | VuoShader_makeLitImageShader (VuoImage image, VuoReal alpha, VuoColor highlightColor, VuoReal shininess) |
| Returns a shader that renders an image with lighting.
|
|
VuoShader | VuoShader_makeLitImageDetailsShader (VuoImage image, VuoReal alpha, VuoImage specularImage, VuoImage normalImage) |
| Returns a shader that renders an image with lighting and surface details.
|
|
VuoShader | VuoShader_makeLinearGradientShader (void) |
| Returns a linear gradient shader.
|
|
static void | VuoShader_setGradientStrip (VuoShader shader, VuoList_VuoColor colors) |
| Creates a gradient strip texture, and sets shader uniforms.
|
|
void | VuoShader_setLinearGradientShaderValues (VuoShader shader, VuoList_VuoColor colors, VuoPoint2d start, VuoPoint2d end, VuoReal noiseAmount) |
| Sets parameters for the linear gradient shader using the provided colors and start and end coordinates.
|
|
VuoShader | VuoShader_makeRadialGradientShader (void) |
| Returns a radial gradient shader.
|
|
void | VuoShader_setRadialGradientShaderValues (VuoShader shader, VuoList_VuoColor colors, VuoPoint2d center, VuoReal radius, VuoReal width, VuoReal height, VuoReal noiseAmount) |
| Sets parameters for the radial gradient shader using the provided colors, center point, and radius.
|
|
VuoShader | VuoShader_makeFrostedGlassShader (void) |
| Returns a frosted glass shader.
|
|
void | VuoShader_setFrostedGlassShaderValues (VuoShader shader, VuoColor color, VuoReal brightness, VuoReal noiseTime, VuoReal noiseAmount, VuoReal noiseScale, VuoReal chromaticAberration, VuoInteger levels, VuoReal roughness, VuoReal spacing, VuoInteger iterations) |
| Sets parameters for the frosted glass shader.
|
|