Enums

cjcliffe edited this page Oct 15, 2011 · 8 revisions

CubicVR.enums

Note that most class constructors and functions expecting a CubicVR.enum.* value will now accept a string simply representing the enum name. i.e. "point" can be used in place of CubicVR.enums.light.type.POINT, if an invalid string enum is provided you will see a warning in the console along with a list of the possible values for that enum.

Frustum

plane

  • CubicVR.enums.frustum.plane.LEFT
  • CubicVR.enums.frustum.plane.RIGHT
  • CubicVR.enums.frustum.plane.TOP
  • CubicVR.enums.frustum.plane.NEAR
  • CubicVR.enums.frustum.plane.FAR

Light

type

  • CubicVR.enums.light.type.NULL - No light, used as a placeholder internally or for dummy operations.
  • CubicVR.enums.light.type.POINT - A point light, uses Light.distance for maximum range.
  • CubicVR.enums.light.type.DIRECTIONAL - A directional light with infinite distance, uses Light.direction vector for direction.
  • CubicVR.enums.light.type.SPOT - A spot light with direction, distance and cutoff.
  • CubicVR.enums.light.type.SPOT_SHADOW - A spot light with direction, distance and cutoff and shadows.
  • CubicVR.enums.light.type.SPOT_SHADOW_PROJECTOR - A spot light with direction, distance and cutoff, shadows and a texture projector.
  • CubicVR.enums.light.type.AREA - A directional (orthographic) light for shadowing large areas.

method - Octree behavior

  • CubicVR.enums.light.method.GLOBAL - light is always on
  • CubicVR.enums.light.method.STATIC - light extents are fixed
  • CubicVR.enums.light.method.DYNAMIC - light will be tracked dynamically

Texture

map

  • CubicVR.enums.texture.map.COLOR
  • CubicVR.enums.texture.map.ENVSPHERE
  • CubicVR.enums.texture.map.NORMAL
  • CubicVR.enums.texture.map.BUMP
  • CubicVR.enums.texture.map.REFLECT
  • CubicVR.enums.texture.map.SPECULAR
  • CubicVR.enums.texture.map.AMBIENT
  • CubicVR.enums.texture.map.ALPHA
  • CubicVR.enums.texture.map.MAX

filter

  • CubicVR.enums.texture.filter.LINEAR
  • CubicVR.enums.texture.filter.LINEAR_MIP
  • CubicVR.enums.texture.filter.NEAREST
  • CubicVR.enums.texture.filter.NEAREST_MIP

UV

axis

  • CubicVR.enums.uv.axis.X
  • CubicVR.enums.uv.axis.Y
  • CubicVR.enums.uv.axis.Z

projection

  • CubicVR.enums.uv.projection.UV
  • CubicVR.enums.uv.projection.PLANAR
  • CubicVR.enums.uv.projection.SPHERICAL
  • CubicVR.enums.uv.projection.CUBIC
  • CubicVR.enums.uv.projection.SKY

Shader

map

  • CubicVR.enums.shader.map.COLOR
  • CubicVR.enums.shader.map.SPECULAR
  • CubicVR.enums.shader.map.NORMAL
  • CubicVR.enums.shader.map.BUMP
  • CubicVR.enums.shader.map.REFLECT
  • CubicVR.enums.shader.map.ENVSPHERE
  • CubicVR.enums.shader.map.AMBIENT
  • CubicVR.enums.shader.map.ALPHA

uniform

  • CubicVR.enums.shader.uniform.MATRIX
  • CubicVR.enums.shader.uniform.VECTOR
  • CubicVR.enums.shader.uniform.FLOAT
  • CubicVR.enums.shader.uniform.ARRAY_VERTEX
  • CubicVR.enums.shader.uniform.ARRAY_UV
  • CubicVR.enums.shader.uniform.ARRAY_FLOAT
  • CubicVR.enums.shader.uniform.INT

Motion

  • CubicVR.enums.motion.POS - Position
  • CubicVR.enums.motion.ROT - Rotation
  • CubicVR.enums.motion.SCL - Scale
  • CubicVR.enums.motion.FOV- Field of View
  • CubicVR.enums.motion.LENS - Focal Length
  • CubicVR.enums.motion.NEARCLIP - Near Clip plane
  • CubicVR.enums.motion.FARCLIP - Far Clip plane
  • CubicVR.enums.motion.INTENSITY - Light Intensity
  • CubicVR.enums.motion.V - Value for controller
  • CubicVR.enums.motion.X
  • CubicVR.enums.motion.Y
  • CubicVR.enums.motion.Z

Envelope

shape

  • CubicVR.enums.envelope.shape.TCB - Tension/Continuity/Bias
  • CubicVR.enums.envelope.shape.HERM - Hermite
  • CubicVR.enums.envelope.shape.BEZI - 1D Bezier
  • CubicVR.enums.envelope.shape.LINE - Linear
  • CubicVR.enums.envelope.shape.STEP - Step (constant)
  • CubicVR.enums.envelope.shape.BEZ2 - 2D Bezier

behavior

  • CubicVR.enums.envelope.behavior.RESET - Reset to 0
  • CubicVR.enums.envelope.behavior.CONSTANT - Maintain values
  • CubicVR.enums.envelope.behavior.REPEAT - Repeat
  • CubicVR.enums.envelope.behavior.OSCILLATE - Oscillate or "ping-pong"
  • CubicVR.enums.envelope.behavior.OFFSET - Offset repeat (accumulate loop offsets)
  • CubicVR.enums.envelope.behavior.LINEAR - Continue indefinitely at the incoming/outing tangents

Post Processing

output

  • CubicVR.enums.post.output.REPLACE
  • CubicVR.enums.post.output.BLEND
  • CubicVR.enums.post.output.ADD
  • CubicVR.enums.post.output.ALPHACUT