Documentation ¶
Overview ¶
Package collada implements a schema for importing and exporting collada V1.5 (.dea) documents
Index ¶
- Constants
- type Accessor
- type According
- type Alpha
- type AmbientCore
- type Animation
- type AnimationClip
- type Annotate
- type Argument
- type Array
- type Asset
- type Binary
- type BindAttribute
- type BindMaterial
- type BindUniform
- type BindVertexInput
- type Blinn
- type BoolArray
- type Bools
- type Camera
- type Channel
- type Code
- type Collada
- type Color
- type ColorClear
- type ColorTarget
- type Compiler
- type ConstantFx
- type Contributor
- type ControlVertices
- type Controller
- type Coverage
- type Create2d
- type Create3d
- type CreateCube
- type DepthClear
- type DepthTarget
- type Directional
- type Draw
- type Effect
- type Evaluate
- type EvaluateScene
- type Extra
- type Float
- type Float3
- type Float3x3
- type Float4
- type Float4x4
- type FloatArray
- type Floats
- type Format
- type Formula
- type FxCommonColorOrTextureType
- type FxCommonFloatOrParamType
- type FxSamplerCommon
- type GeographicLocation
- type Geometry
- type H
- type HasAnnotate
- type HasAsset
- type HasCount
- type HasExtra
- type HasId
- type HasMaterial
- type HasName
- type HasNewparam
- type HasNodes
- type HasP
- type HasPhs
- type HasPs
- type HasSharedInput
- type HasSid
- type HasTechnique
- type HasTechniqueCommon
- type HasTechniqueFx
- type HasType
- type HasUrl
- type Id
- type IdRefArray
- type IdRefs
- type Image
- type Imager
- type Include
- type InitFrom
- type InputShared
- type InputUnshared
- type InstanceAnimation
- type InstanceCamera
- type InstanceController
- type InstanceEffect
- type InstanceFormula
- type InstanceGeometry
- type InstanceImage
- type InstanceKinematicsScene
- type InstanceLight
- type InstanceMaterialGeometry
- type InstanceMaterialRendering
- type InstanceNode
- type InstancePhysicsScene
- type InstanceVisualScene
- type IntArray
- type Ints
- type Joints
- type Lambert
- type LibraryAnimationClips
- type LibraryAnimations
- type LibraryCameras
- type LibraryControllers
- type LibraryEffects
- type LibraryFormulas
- type LibraryGeometries
- type LibraryImages
- type LibraryLights
- type LibraryMaterials
- type LibraryNodes
- type LibraryVisualScenes
- type Light
- type Lines
- type Linestrips
- type Linker
- type Lookat
- type Material
- type Matrix
- type Mesh
- type Modifier
- type Morph
- type NameArray
- type Names
- type Newparam
- type Node
- type Opaque
- type Optics
- type Orthographic
- type P
- type ParamCore
- type ParamReference
- type Pass
- type Perspective
- type Ph
- type Phong
- type Point
- type Polygons
- type Polylist
- type ProfileBridge
- type ProfileCg
- type ProfileCommon
- type ProfileGles
- type ProfileGles2
- type ProfileGlsl
- type Program
- type Render
- type Rgb
- type Rotate
- type Sampler
- type Sampler1D
- type Sampler2D
- type Sampler3D
- type SamplerCube
- type SamplerDepth
- type SamplerRect
- type SamplerStates
- type Scale
- type Scene
- type Semantic
- type Setparam
- type Shader
- type SidRefArray
- type SidRefs
- type Skeleton
- type Skew
- type Skin
- type Source
- type Sources
- type Spline
- type Spot
- type States
- type StencilClear
- type StencilTarget
- type Targets
- type TechniqueCommon
- type TechniqueCore
- type TechniqueFx
- type TechniqueHint
- type Texcombiner
- type Texenv
- type Texture
- type TexturePipeline
- type Tokens
- type Translate
- type Triangles
- type Trifans
- type Tristrips
- type Unit
- type UpAxis
- type Uri
- type Usertype
- type Values
- type Version
- type VertexWeights
- type Vertices
- type VisualScene
Constants ¶
const ( OpaqueAlphaZero = "A_ZERO" OpaqueAlphaOne = "A_ONE" OpaqueRgbZero = "RGB_ZERO" OpaqueRgbOne = "RGB_ONE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessor ¶
type Accessor struct { }
Accessor declares an access pattern to one of the array elements <float_array>, <int_array>, <Name_array>, <bool_array>, and <IDREF_array>.
type AmbientCore ¶
type AmbientCore struct { }
AmbientCore (core) Describes an ambient light source.
type Animation ¶
type Animation struct { }
Animation ategorizes the declaration of animation information.
type AnimationClip ¶
type AnimationClip struct { }
AnimationClip defines a section of the animation curves to be used together as an animation clip.
type Annotate ¶
type Annotate struct { }
Annotate Adds a strongly typed annotation remark to the parent object.
type Asset ¶
type Asset struct { Contributor []*Contributor `xml:"contributor"` Coverage *Coverage `xml:"coverage"` Created string `xml:"created"` Keywords string `xml:"keywords,omitempty"` Modified string `xml:"modified"` Revision string `xml:"revision,omitempty"` Subject string `xml:"subject,omitempty"` Title string `xml:"title,omitempty"` Unit *Unit `xml:"unit"` UpAxis UpAxis `xml:"up_axis,omitempty"` }
Asset defines asset-management information regarding its parent element.
type BindAttribute ¶
type BindAttribute struct { }
BindAttribute Binds semantics to vertex attribute inputs of a shader.
type BindMaterial ¶
type BindMaterial struct { Param []*ParamCore `xml:"param"` HasTechniqueCommon HasTechnique HasExtra }
BindMaterial Binds a specific material to a piece of geometry, binding varying and uniform parameters at the same time.
type BindUniform ¶
type BindUniform struct { }
BindUniform Binds values to uniform inputs of a shader or binds values to effect parameters upon instantiation.
type BindVertexInput ¶
type BindVertexInput struct { }
BindVertexInput Binds geometry vertex inputs to effect vertex inputs upon instantiation.
type Camera ¶
type Camera struct { HasId HasName HasAsset Optics Optics `xml:"optics"` Imager *Imager `xml:"imager"` HasExtra }
Camera declares a view into the scene hierarchy or scene graph. The camera contains elements that describe the camera’s optics and imager.
type Collada ¶
type Collada struct { XMLName string `xml:"COLLADA"` Xmlns Uri `xml:"xmlns,attr,omitempty"` Version Version `xml:"version,attr"` Base Uri `xml:"base,attr,omitempty"` HasAsset LibraryAnimationClips []*LibraryAnimationClips `xml:"library_animation_clips"` LibraryAnimations []*LibraryAnimations `xml:"library_animations"` // LibraryArticulatedSystems []*LibraryArticulatedSystems `xml:"library_animation_clips"` LibraryCameras []*LibraryCameras `xml:"library_cameras"` LibraryControllers []*LibraryControllers `xml:"library_controllers"` LibraryLights []*LibraryLights `xml:"library_lights"` LibraryImages []*LibraryImages `xml:"library_images"` LibraryEffects []*LibraryEffects `xml:"library_effects"` // LibraryForceFields []*LibraryForceFields `xml:"library_force_fields"` LibraryFormulas []*LibraryFormulas `xml:"library_formulas"` // LibraryJoints []*LibraryJoints `xml:"library_joints"` // LibraryKinematicModels []*LibraryKinematicModels `xml:"library_kinematic_models"` // LibraryKinematicScenes []*LibraryKinematicScenes `xml:"library_kinematic_scenes"` LibraryMaterials []*LibraryMaterials `xml:"library_materials"` LibraryGeometries []*LibraryGeometries `xml:"library_geometries"` // LibraryPhysicsNodes []*LibraryPhysicsNodes `xml:"library_physics_nodes"` // LibraryPhysicsMaterials []*LibraryPhysicsMaterials `xml:"library_physics_materials"` // LibraryPhysicsScenes []*LibraryPhysicsScenes `xml:"library_physics_scenes"` // LibraryPhysicsScenes []*LibraryPhysicsScenes `xml:"library_physics_scenes"` LibraryVisualScenes []*LibraryVisualScenes `xml:"library_visual_scenes"` Scene *Scene `xml:"scene"` HasExtra }
COLLADA declares the root of the document that contains some of the content in the COLLADA schema.
func LoadDocument ¶
type ColorClear ¶
type ColorClear struct { }
type ColorTarget ¶
type ColorTarget struct { }
type Compiler ¶
type Compiler struct { }
Compiler Contains command-line or runtime-invocation options for a shader compiler.
type ConstantFx ¶
type ConstantFx struct { }
Constant Produces a constantly shaded surface that is independent of lighting.
type Contributor ¶
type Contributor struct { Author string `xml:"author,omitempty"` AuthorEmail string `xml:"author_email,omitempty"` AuthorWebsite string `xml:"author_website,omitempty"` AuthoringTool string `xml:"authoring_tool,omitempty"` Comments string `xml:"comments,omitempty"` Copyright string `xml:"copyright,omitempty"` SourceData Uri `xml:"source_data,omitempty"` }
Contributor defines authoring information for asset management.
type ControlVertices ¶
type ControlVertices struct { }
ControlVertices describes the control vertices (CVs) of a spline.
type Controller ¶
type Controller struct { }
Controller categorizes the declaration of generic control information.
type Coverage ¶
type Coverage struct {
GeographicLocation []*GeographicLocation `xml:"geographic_location"`
}
Coverage provides information about the location of the visual scene in physical space.
type CreateCube ¶
type CreateCube struct { }
type DepthClear ¶
type DepthClear struct { }
DepthClear Specifies whether a render target image is to be cleared, and which value to use.
type DepthTarget ¶
type DepthTarget struct { }
DepthTarget Specifies which <image> will receive the depth information from the output of this pass.
type Effect ¶
type Effect struct { HasId HasName HasAsset HasAnnotate HasNewparam ProfileBridge *ProfileBridge `xml:"profile_BRIDGE"` ProfileCg *ProfileCg `xml:"profile_CG"` ProfileGles *ProfileGles `xml:"profile_GLES"` ProfileGles2 *ProfileGles2 `xml:"profile_GLES2"` ProfileGlsl *ProfileGlsl `xml:"profile_GLSL"` ProfileCommon *ProfileCommon `xml:"profile_COMMON"` HasExtra }
Effect Provides a self-contained description of a COLLADA effect.
type Evaluate ¶
type Evaluate struct { }
Evaluate Contains evaluation elements for a rendering pass.
type EvaluateScene ¶
type EvaluateScene struct { }
EvaluateScene declares information specifying how to evaluate a <visual_scene>.
type Extra ¶
type Extra struct { HasId HasName HasType HasAsset HasTechnique }
Extra provides arbitrary additional information about or related to its parent element.
type FloatArray ¶
type FloatArray struct { HasId HasCount HasName Digits uint8 `xml:"digits,attr,omitempty"` Magnitude uint16 `xml:"magnitude,attr,omitempty"` Floats }
FloatArray declares the storage for a homogenous array of floating-point values.
type FxCommonColorOrTextureType ¶
type FxCommonColorOrTextureType struct { Opaque Opaque `xml:"opaque,attr,omitempty"` Color *Color `xml:"color"` Param *ParamReference `xml:"param"` Texture *Texture `xml:"texture"` }
A type that describes color attributes of fixed-function shader elements
type FxCommonFloatOrParamType ¶
type FxCommonFloatOrParamType struct { Float *Float `xml:"float"` Param *ParamReference `xml:"param"` }
A type that describes the scalar attributes of fixed-function shader elements inside <profile_COMMON> effects. See main entry.
type FxSamplerCommon ¶
type FxSamplerCommon struct { }
type GeographicLocation ¶
type GeographicLocation struct { }
GeographicLocation defines an asset’s location for asset management.
type Geometry ¶
type Geometry struct { HasId HasName HasAsset //TODO // ConvexMesh *ConvexMesh `xml:"convex_mesh"` Mesh *Mesh `xml:"mesh"` Spline *Spline `xml:"spline"` //TODO // Brep *Brep `xml:"brep"` HasExtra }
Geometry describes the visual shape and appearance of an object in a scene.
type HasAnnotate ¶
type HasAnnotate struct {
Annotate []*Annotate `xml:"annotate"`
}
type HasMaterial ¶
type HasMaterial struct {
Material string `xml:"material,attr,omitempty"`
}
type HasNewparam ¶
type HasNewparam struct {
Newparam []*Newparam `xml:"newparam"`
}
type HasSharedInput ¶
type HasSharedInput struct {
}type HasTechnique ¶
type HasTechnique struct {
TechniqueCore []*TechniqueCore `xml:"technique,omitempty"`
}
type HasTechniqueCommon ¶
type HasTechniqueCommon struct {
TechniqueCommon TechniqueCommon `xml:"technique_common"`
}
type HasTechniqueFx ¶
type HasTechniqueFx struct {
TechniqueFx []*TechniqueFx `xml:"technique,omitempty"`
}
type IdRefArray ¶
IdRefArray declares the storage for a homogenous array of ID reference values.
type Imager ¶
type Imager struct { HasTechnique HasExtra }
Imager represents the image sensor of a camera (for example, film or CCD).
type Include ¶
type Include struct { }
Include Imports source code or precompiled binary shaders into the FX Runtime by referencing an external resource.
type InputShared ¶
type InputShared struct {}
InputShared declares the input semantics of a data source.
type InputUnshared ¶
type InputUnshared struct {}
InputUnshared declares the input semantics of a data source.
type InstanceAnimation ¶
type InstanceAnimation struct { }
InstanceAnimation instantiates a COLLADA animation resource.
type InstanceCamera ¶
InstanceCamera instantiates a COLLADA camera resource.
type InstanceController ¶
type InstanceController struct { HasSid HasName HasUrl Skeleton []*Skeleton `xml:"skeleton"` BindMaterial *BindMaterial `xml:"bind_material"` HasExtra }
InstanceController instantiates a a COLLADA controller resource.
type InstanceEffect ¶
type InstanceEffect struct { HasId HasName HasUrl TechniqueHint []*TechniqueHint `xml:"technique_hint"` Setparam []*Setparam `xml:"setparam"` }
InstanceEffect Instantiates a COLLADA effect.
type InstanceFormula ¶
type InstanceFormula struct { }
InstanceFormula instantiates a COLLADA formula resource.
type InstanceGeometry ¶
type InstanceGeometry struct { HasSid HasName HasUrl BindMaterial *BindMaterial `xml:"bind_material"` HasExtra }
InstanceGeometry instantiates a COLLADA geometry resource.
type InstanceImage ¶
type InstanceImage struct { }
type InstanceKinematicsScene ¶
type InstanceKinematicsScene struct { }
type InstanceLight ¶
InstanceLight instantiates a COLLADA light resource.
type InstanceMaterialGeometry ¶
type InstanceMaterialGeometry struct { }
InstanceMaterialGeometry Instantiates a COLLADA material resource.
type InstanceMaterialRendering ¶
type InstanceMaterialRendering struct { }
InstanceMaterialRendering Instantiates a COLLADA material resource for a screen effect.
type InstanceNode ¶
InstanceNode instantiates a COLLADA node resource.
type InstancePhysicsScene ¶
type InstancePhysicsScene struct { }
type InstanceVisualScene ¶
InstanceVisualScene instantiates a COLLADA visual_scene resource.
type IntArray ¶
type IntArray struct { HasCount HasId HasName MinInclusive *int `xml:"minInclusive,attr"` MaxInclusive *int `xml:"maxInclusive,attr"` Ints }
IntArray stores a homogenous array of integer values.
type Joints ¶
type Joints struct { }
Joints associates joint, or skeleton, nodes with attribute data.
type Lambert ¶
type Lambert struct { }
Lambert Produces a diffuse shaded surface that is independent of lighting.
type LibraryAnimationClips ¶
type LibraryAnimationClips struct { }
LibraryAnimationClips provides a library in which to place <animation_clip> elements.
type LibraryAnimations ¶
type LibraryAnimations struct { }
LibraryAnimations provides a library in which to place <animation> elements.
type LibraryCameras ¶
Provides a library in which to place <camera> elements.
type LibraryControllers ¶
type LibraryControllers struct { }
LibraryControllers provides a library in which to place <controller> elements.
type LibraryEffects ¶
LibraryEffects Provides a library in which to place <effect> assets.
type LibraryFormulas ¶
type LibraryFormulas struct { }
LibraryFormulas provides a library in which to place <formula> elements.
type LibraryGeometries ¶
type LibraryGeometries struct { HasId HasName HasAsset Geometry []*Geometry `xml:"geometry"` HasExtra }
LibraryGeometries provides a library in which to place <geometry> elements.
type LibraryImages ¶
type LibraryImages struct { }
type LibraryLights ¶
LibraryLights provides a library in which to place <image> elements.
type LibraryMaterials ¶
type LibraryMaterials struct { HasId HasName HasAsset Material []*Material `xml:"material"` HasExtra }
LibraryMaterials Provides a library in which to place <material> assets.
type LibraryNodes ¶
type LibraryNodes struct { }
LibraryNodes provides a library in which to place <node> elements.
type LibraryVisualScenes ¶
type LibraryVisualScenes struct { HasId HasName HasAsset VisualScene []*VisualScene `xml:"visual_scene"` HasExtra }
LibraryVisualScenes provides a library in which to place <visual_scene> elements.
type Light ¶
type Light struct { HasId HasName HasAsset HasTechniqueCommon HasTechnique HasExtra }
Light declares a light source that illuminates a scene.
type Lines ¶
type Lines struct { HasName HasCount HasMaterial HasP HasExtra }
Lines declares the binding of geometric primitives and vertex attributes for a <mesh>element.
type Linestrips ¶
type Linestrips struct { HasName HasCount HasMaterial HasPs HasExtra }
Linestrips declares a binding of geometric primitives and vertex attributes for a <mesh>element.
type Linker ¶
type Linker struct { }
Linker Contains command-line or runtime-invocation options for shader linkers to combine shaders into programs.
type Lookat ¶
Lookat contains a position and orientation transformation suitable for aiming a camera.
type Material ¶
type Material struct { HasId HasName HasAsset InstanceEffect InstanceEffect `xml:"instance_effect"` HasExtra }
Material Defines the equations necessary for the visual appearance of geometry and screenspace image processing
type Matrix ¶
Matrix describes transformations that embody mathematical changes to points within a coordinate system or the coordinate system itself.
type Mesh ¶
type Mesh struct { Source []*Source `xml:"source"` Vertices Vertices `xml:"vertices"` Lines []*Lines `xml:"lines"` Linestrips []*Linestrips `xml:"linestrips"` Polygons []*Polygons `xml:"polygons"` Polylist []*Polylist `xml:"polylist"` Triangles []*Triangles `xml:"triangles"` Trifans []*Trifans `xml:"trifans"` Tristrips []*Tristrips `xml:"tristrips"` HasExtra }
Mesh describes basic geometric meshes using vertex and primitive information.
type Modifier ¶
type Modifier struct { }
Modifier Provides additional information about the volatility or linkage of a <newparam>declaration.
type Morph ¶
type Morph struct { }
Morph describes the data required to blend between sets of static meshes.
type Newparam ¶
type Newparam struct { }
Newparam Creates a new, named parameter object and assigns it a type and an initial value. See Chapter 5: Core Elements Reference.
type Node ¶
type Node struct { HasId HasName HasSid HasType Layer string `xml:"layer,attr,omitempty"` HasAsset Lookat []*Lookat `xml:"lookat"` Matrix []*Matrix `xml:"matrix"` Translate []*Translate `xml:"translate"` Rotate []*Rotate `xml:"rotate"` Scale []*Scale `xml:"scale"` Skew []*Skew `xml:"skew"` InstanceCamera []*InstanceCamera `xml:"instance_camera"` InstanceController []*InstanceController `xml:"instance_controller"` InstanceGeometry []*InstanceGeometry `xml:"instance_geometry"` InstanceLight []*InstanceLight `xml:"instance_light"` InstanceNode []*InstanceNode `xml:"instance_node"` HasNodes HasExtra }
Node embodies the hierarchical relationship of elements in a scene.
func (*Node) HasGeometry ¶
type Optics ¶
type Optics struct { HasTechniqueCommon HasTechnique HasExtra }
Optics represents the apparatus on a camera that projects the image onto the image sensor.
type Orthographic ¶
type Orthographic struct { }
Orthographic describes the field of view of an orthographic camera.
type ParamCore ¶
type ParamCore struct { }
ParamCore declares parametric information for its parent element.
type ParamReference ¶
type ParamReference struct { }
ParamReference (reference) References a predefined parameter. See Chapter 5: Core Elements Reference.
type Pass ¶
type Pass struct { }
Pass Provides a static declaration of all the render states, shaders, and settings for one rendering pipeline.
type Perspective ¶
type Perspective struct { }
Perspective describes the field of view of a perspective camera.
type Phong ¶
type Phong struct { Emission *FxCommonColorOrTextureType `xml:"emission"` AmbientFx *FxCommonColorOrTextureType `xml:"ambient"` Diffuse *FxCommonColorOrTextureType `xml:"diffuse"` Specular *FxCommonColorOrTextureType `xml:"specular"` Shininess *FxCommonFloatOrParamType `xml:"shininess"` Reflective *FxCommonColorOrTextureType `xml:"reflective"` Reflectivity *FxCommonFloatOrParamType `xml:"reflectivity"` Transparent *FxCommonColorOrTextureType `xml:"transparent"` Transparency *FxCommonFloatOrParamType `xml:"transparency"` IndexOfRefraction *FxCommonFloatOrParamType `xml:"index_of_refraction"` }
Phong Produces a shaded surface where the specular reflection is shaded
type Polygons ¶
Polygons declares the binding of geometric primitives and vertex attributes for a <mesh>element.
type Polylist ¶
Polylist declares the binding of geometric primitives and vertex attributes for a <mesh>element.
type ProfileBridge ¶
type ProfileBridge struct { HasId HasAsset HasNewparam }
ProfileBridge Provides support for referencing effect profiles written with external standards.
type ProfileCg ¶
type ProfileCg struct { }
ProfileCg Declares a platform-specific representation of an effect written in the NVIDIA®Cg language.
type ProfileCommon ¶
type ProfileCommon struct { HasId HasAsset HasNewparam HasTechniqueFx HasExtra }
ProfileCommon Opens a block of platform-independent declarations for the common, fixed-function shader.
type ProfileGles ¶
type ProfileGles struct { }
type ProfileGles2 ¶
type ProfileGles2 struct { }
type ProfileGlsl ¶
type ProfileGlsl struct { }
type Program ¶
type Program struct { }
Program Links multiple shaders together to produce a pipeline for geometry processing.
type Sampler ¶
type Sampler struct { }
Sampler declares an interpolation sampling function for an animation.
type SamplerCube ¶
type SamplerCube struct { }
type SamplerDepth ¶
type SamplerDepth struct { }
type SamplerRect ¶
type SamplerRect struct { }
type SamplerStates ¶
type SamplerStates struct { }
SamplerStates Allows users to modify an effect’s sampler state from a material.
type Scene ¶
type Scene struct { InstancePhysicsScene []*InstancePhysicsScene `xml:"instance_physics_scene"` InstanceVisualScene *InstanceVisualScene `xml:"instance_visual_scene"` InstanceKinematicsScene *InstanceKinematicsScene `xml:"instance_kinematics_scene"` HasExtra }
Scene embodies the entire set of information that can be visualized from the contents of a COLLADA resource.
type Semantic ¶
type Semantic struct { }
Semantic Provides metadata that describes the purpose of a parameter declaration.
type Setparam ¶
type Setparam struct {
Ref string `xml:"ref,attr"`
}
Setparam Assigns a new value to a previously defined parameter. See main entry in Chapter 5: Core Elements Reference.
type SidRefArray ¶
SidRefArray declares the storage for a homogenous array of scoped-identifier reference values.
type Skeleton ¶
type Skeleton struct { }
Skeleton indicates where a skin controller is to start searching for the joint nodes that it needs.
type Skin ¶
type Skin struct { }
Skin contains vertex and primitive information sufficient to describe blend-weight skinning.
type Source ¶
type Source struct { HasId HasName HasAsset BoolArray *BoolArray `xml:"bool_array"` FloatArray *FloatArray `xml:"float_array"` IdRefArray *IdRefArray `xml:"IDREF_array"` IntArray *IntArray `xml:"int_array"` NameArray *NameArray `xml:"Name_array"` SidRefArray *SidRefArray `xml:"SIDREF_array"` // TokenArray *TokenArray `xml:"token_array"` HasTechniqueCommon HasTechnique }
Source declares a data repository that provides values according to the semantics of an <input> element that refers to it.
type Spline ¶
type Spline struct { }
Spline describes a multisegment spline with control vertex (CV) and segment information.
type States ¶
type States struct { }
States Contains all rendering states to set up for the parent pass.
type StencilClear ¶
type StencilClear struct { }
StencilClear Specifies whether a render target image is to be cleared, and which value to use.
type StencilTarget ¶
type StencilTarget struct { }
StencilTarget Specifies which <image> will receive the stencil information from the output of this pass
type Targets ¶
type Targets struct { }
Targets teclares morph targets, their weights, and any user-defined attributes associated with them.
type TechniqueCommon ¶
type TechniqueCommon struct {
XML string `xml:",innerxml"`
}
TechniqueCommon specifies the information for a specific element for the common profile that all COLLADA implementations must support.
type TechniqueCore ¶
type TechniqueCore struct { Profile string `xml:"profile,attr"` Xmlns string `xml:"xmlns,attr,omitempty"` XML string `xml:",innerxml"` }
Technique (core) Declares the information used to process some portion of the content. Each technique conforms to an associated profile.
type TechniqueFx ¶
type TechniqueFx struct { HasId HasSid HasAsset HasAnnotate Blinn *Blinn `xml:"blinn"` ConstantFx *ConstantFx `xml:"constant"` Lambert *Lambert `xml:"lambert"` Phone *Phong `xml:"phong"` Pass *Pass `xml:"pass"` HasExtra }
TechniqueFx Holds a description of the textures, samplers, shaders, parameters, and passes necessary for rendering this effect using one method.
type TechniqueHint ¶
type TechniqueHint struct { Platform string `xml:"platform,attr,omitempty"` Ref string `xml:"ref,attr"` Profile string `xml:"profile,attr,omitempty"` }
TechniqueHint Adds a hint for a platform of which technique to use in this effect
type Texcombiner ¶
type Texcombiner struct { }
type TexturePipeline ¶
type TexturePipeline struct { }
TexturePipeline Defines a set of texturing commands that will be converted into multitexturing operations using glTexEnv in regular and combiner mode.
type Translate ¶
Translate changes the position of an object in a coordinate system without any rotation.
type Triangles ¶
type Triangles struct { HasName HasCount HasMaterial HasP HasExtra }
Triangles provides the information needed to bind vertex attributes together and then organize those vertices into individual triangles.
type Trifans ¶
type Trifans struct { HasName HasCount HasMaterial HasP HasExtra }
Trifans provides the information needed to bind vertex attributes together and then organize those vertices into connected triangles.
type Tristrips ¶
type Tristrips struct { HasName HasCount HasMaterial HasP HasExtra }
Tristrips provides the information needed to bind vertex attributes together and then organize those vertices into connected triangles
type Usertype ¶
type Usertype struct { }
Usertype Creates an instance of a structured class for a parameter.
type VertexWeights ¶
type VertexWeights struct { }
VertexWeights describes the combination of joints and weights used by a skin.
type Vertices ¶
type Vertices struct { HasId HasName Input []*InputUnshared `xml:"input"` HasExtra }
Vertices declares the attributes and identity of mesh-vertices.
type VisualScene ¶
type VisualScene struct { HasId HasName HasAsset HasNodes EvaluateScene []*EvaluateScene `xml:"evaluate_scene"` HasExtra }
VisualScene embodies the entire set of information that can be visualized from the contents of a COLLADA resource.