Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
Wizt::Shaders Struct Reference

Static Public Member Functions

static std::string Phong ()
 Implements phong shading, defining a GLSL function of the signature.
static std::string Ortho ()

Static Public Attributes

static const char Ortho_glsl []

Member Function Documentation

◆ Phong()

std::string Wizt::Shaders::Phong ( )
static

Implements phong shading, defining a GLSL function of the signature.

vec4 Phong(vec3 N,
vec4 DiffuseColor,
float shininess,
float sidedness);
static std::string Phong()
Implements phong shading, defining a GLSL function of the signature.
Definition ShaderCodes.cpp:7

sidedness expresses a value [-1.0,+1.0] telling how to weight which side of a surface. 0.0 is symmetric, +1.0 is enlightening only the front side.

Referenced by Wizt::Phong::PhongShaderFunction().