< Home

< Table of Contents

REFERENCE MANUAL

Shader Class Reference

#include <hps.h>

Classes

class  File
 
class  ImportOptionsKit
 

Public Types

enum  Parameterization {
  Parameterization::Cylinder, Parameterization::PhysicalReflection, Parameterization::Object, Parameterization::NaturalUV,
  Parameterization::ReflectionVector, Parameterization::SurfaceNormal, Parameterization::Sphere, Parameterization::UV,
  Parameterization::World
}
 

Detailed Description

The Shader class contains objects for importing shader source files and enumerations used when defining shaders in Visualize.

Member Enumeration Documentation

Enumeration of the parameterization sources for shaders, i.e., how to map the shader to geometry.

Enumerator
Cylinder 

Use a cylindrical mapping for the shader.

PhysicalReflection 

Shader Parameterization.

Object 

Use the (x,y,z) coordinates for the object before transforms have been applied for the shader.

NaturalUV 

Use the natural mapping for meshes, NURBS surfaces and shells for the shader. For meshes, shaders will be stretched in the range [0,1]. For NURBS surfaces, shaders will be mapped in the range [0,(control point count - degree)]. For shells, shaders will be mapped such that u=x+z and v=x+y where (x,y,z) is in object space.

ReflectionVector 

Shader Parameterization.

SurfaceNormal 

Shader Parameterization.

Sphere 

Use a spherical mapping for the shader.

UV 

Use the mapping explicitly defined on the geometry for the shader.

World 

Use the (x, y, z) coordinates for the object after transforms have been applied for the shader.


The documentation for this class was generated from the following file: