Tanoda
Leap.Unity.GraphicalRenderer.LeapBakedRenderer Class Reference
Inheritance diagram for Leap.Unity.GraphicalRenderer.LeapBakedRenderer:
Leap.Unity.GraphicalRenderer.LeapMesherBase Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomMatrixChannelFeature > Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomColorChannelFeature > Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomVectorChannelFeature > Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomFloatChannelFeature > Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapBlendShapeFeature > Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapRuntimeTintFeature > Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapSpriteFeature > Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapTextureFeature > Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapMeshGraphicBase >

Classes

class  MeshRendererContainer
 

Public Types

enum  MotionType { None , Translation }
 

Public Member Functions

override SupportInfo GetSpaceSupportInfo (LeapSpace space)
 
override void OnEnableRenderer ()
 Called when the renderer is enabled at runtime. More...
 
override void OnUpdateRenderer ()
 Called from LateUpdate during runtime. Use this to update the renderer using any changes made to during this frame. More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
virtual void GetSupportInfo (List< LeapTextureFeature > features, List< SupportInfo > info)
 
virtual void GetSupportInfo (List< LeapSpriteFeature > features, List< SupportInfo > info)
 
virtual void GetSupportInfo (List< LeapRuntimeTintFeature > features, List< SupportInfo > info)
 
virtual void GetSupportInfo (List< LeapBlendShapeFeature > features, List< SupportInfo > info)
 
virtual void GetSupportInfo (List< CustomFloatChannelFeature > features, List< SupportInfo > info)
 
virtual void GetSupportInfo (List< CustomVectorChannelFeature > features, List< SupportInfo > info)
 
virtual void GetSupportInfo (List< CustomColorChannelFeature > features, List< SupportInfo > info)
 
virtual void GetSupportInfo (List< CustomMatrixChannelFeature > features, List< SupportInfo > info)
 
override void OnEnableRenderer ()
 Called when the renderer is enabled at runtime. More...
 
override void OnDisableRenderer ()
 Called when the renderer is disabled at runtime. More...
 
override void OnUpdateRenderer ()
 Called from LateUpdate during runtime. Use this to update the renderer using any changes made to during this frame. More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapMeshGraphicBase >
abstract SupportInfo GetSpaceSupportInfo (LeapSpace space)
 
abstract void OnEnableRenderer ()
 Called when the renderer is enabled at runtime. More...
 
abstract void OnDisableRenderer ()
 Called when the renderer is disabled at runtime. More...
 
abstract void OnUpdateRenderer ()
 Called from LateUpdate during runtime. Use this to update the renderer using any changes made to during this frame. More...
 
abstract bool IsValidGraphic< T > ()
 
override bool IsValidGraphic< T > ()
 
abstract bool IsValidGraphic (LeapGraphic graphic)
 
override bool IsValidGraphic (LeapGraphic graphic)
 
abstract LeapGraphic GetValidGraphicOnObject (GameObject obj)
 
override LeapGraphic GetValidGraphicOnObject (GameObject obj)
 
void PreventDuplication< T > (ref T t)
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapTextureFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapSpriteFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapRuntimeTintFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapBlendShapeFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomFloatChannelFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomVectorChannelFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomColorChannelFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomMatrixChannelFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 

Static Public Attributes

const string DEFAULT_SHADER = "LeapMotion/GraphicRenderer/Unlit/Baked"
 
- Static Public Attributes inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
const string MESH_ASSET_NAME = "Mesh Data"
 
const string TEXTURE_ASSET_NAME = "Texture Data"
 
const string UV_0_FEATURE = LeapGraphicRenderer.FEATURE_PREFIX + "VERTEX_UV_0"
 
const string UV_1_FEATURE = LeapGraphicRenderer.FEATURE_PREFIX + "VERTEX_UV_1"
 
const string UV_2_FEATURE = LeapGraphicRenderer.FEATURE_PREFIX + "VERTEX_UV_2"
 
const string UV_3_FEATURE = LeapGraphicRenderer.FEATURE_PREFIX + "VERTEX_UV_3"
 
const string COLORS_FEATURE = LeapGraphicRenderer.FEATURE_PREFIX + "VERTEX_COLORS"
 
const string NORMALS_FEATURE = LeapGraphicRenderer.FEATURE_PREFIX + "VERTEX_NORMALS"
 
const string CUSTOM_CHANNEL_KEYWORD = LeapGraphicRenderer.FEATURE_PREFIX + "ENABLE_CUSTOM_CHANNELS"
 
- Static Public Attributes inherited from Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapMeshGraphicBase >
const string DATA_FOLDER_NAME
 
const string ASSET_PATH
 

Protected Member Functions

override void prepareMaterial ()
 
override void buildTopology ()
 
override void postProcessMesh ()
 
override bool doesRequireVertInfo ()
 
override Vector3 graphicVertToMeshVert (Vector3 vertex)
 
override void graphicVertNormalToMeshVertNormal (Vector3 vertex, Vector3 normal, out Vector3 meshVert, out Vector3 meshNormal)
 
- Protected Member Functions inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
virtual void updateTinting ()
 
virtual void updateBlendShapes ()
 
virtual void updateCustomChannels ()
 
virtual void setupForBuilding ()
 
virtual void loadAllSupportedFeatures ()
 
virtual void prepareMeshes ()
 
virtual void prepareMaterial ()
 
virtual void extractSpriteRects ()
 
virtual void uploadSpriteTextures ()
 
virtual void buildMesh ()
 
virtual void buildGraphic ()
 
virtual void refreshMeshData ()
 
virtual void buildTopology ()
 
virtual void buildColors ()
 
virtual void buildUvs (UVChannelFlags channel)
 
virtual void buildVertInfo ()
 
virtual void buildBlendShapes (LeapBlendShapeData blendShapeData)
 
virtual Vector3 blendShapeDelta (Vector3 shapeVert, Vector3 originalVert)
 
virtual void beginMesh (Mesh mesh=null)
 
virtual void finishMesh (bool deleteEmptyMeshes=true)
 
virtual void finishAndAddMesh (bool deleteEmptyMeshes=true)
 
virtual void postProcessMesh ()
 
virtual bool doesRequireMeshColors ()
 
virtual bool doesRequireMeshNormals ()
 
virtual bool doesRequireUvChannel (UVChannelFlags channel)
 
void drawMesh (Mesh mesh, Matrix4x4 transform)
 
virtual bool doesRequireVertInfo ()
 
abstract Vector3 graphicVertToMeshVert (Vector3 vertex)
 
abstract void graphicVertNormalToMeshVertNormal (Vector3 vertex, Vector3 normal, out Vector3 meshVert, out Vector3 meshNormal)
 

Additional Inherited Members

- Static Public Member Functions inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
static string GetUvFeature (UVChannelFlags flags)
 
- Public Attributes inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
Action< Texture2D, AtlasUvsOnPostProcessAtlas
 
- Protected Attributes inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
Shader _shader
 
GenerationState _generation = GenerationState.GetGenerationState()
 
bool _doesRequireColors
 
bool _doesRequireNormals
 
bool _doesRequireVertInfo
 
List< UVChannelFlags > _requiredUvChannels = new List<UVChannelFlags>()
 
List< LeapTextureFeature_textureFeatures = new List<LeapTextureFeature>()
 
List< LeapSpriteFeature_spriteFeatures = new List<LeapSpriteFeature>()
 
List< LeapRuntimeTintFeature_tintFeatures = new List<LeapRuntimeTintFeature>()
 
List< LeapBlendShapeFeature_blendShapeFeatures = new List<LeapBlendShapeFeature>()
 
List< CustomFloatChannelFeature_floatChannelFeatures = new List<CustomFloatChannelFeature>()
 
List< CustomVectorChannelFeature_vectorChannelFeatures = new List<CustomVectorChannelFeature>()
 
List< CustomColorChannelFeature_colorChannelFeatures = new List<CustomColorChannelFeature>()
 
List< CustomMatrixChannelFeature_matrixChannelFeatures = new List<CustomMatrixChannelFeature>()
 
Material _material
 
RendererMeshData _meshes
 
RendererTextureData _packedTextures
 
MaterialPropertyBlock _spriteTextureBlock
 
List< Vector4 > _tintColors = new List<Vector4>()
 
List< float > _blendShapeAmounts = new List<float>()
 
List< float > _customFloatChannelData = new List<float>()
 
List< Vector4 > _customVectorChannelData = new List<Vector4>()
 
List< Color_customColorChannelData = new List<Color>()
 
List< Matrix4x4 > _customMatrixChannelData = new List<Matrix4x4>()
 
- Static Protected Attributes inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
const string TINTS_PROPERTY = LeapGraphicRenderer.PROPERTY_PREFIX + "Tints"
 
const string BLEND_SHAPE_AMOUNTS_PROPERTY = LeapGraphicRenderer.PROPERTY_PREFIX + "BlendShapeAmounts"
 
- Properties inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
Material material [get]
 
IEnumerable< UVChannelFlags > enabledUvChannels [get]
 
- Properties inherited from Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapMeshGraphicBase >
LeapGraphicRenderer renderer [get]
 Gets the renderer this rendering method is attached to. More...
 
LeapGraphicGroup group [get]
 Gets the group this rendering method is attached to. More...
 
- Properties inherited from Leap.Unity.GraphicalRenderer.ILeapInternalRenderingMethod
LeapGraphicRenderer renderer [set]
 
LeapGraphicGroup group [set]
 

Detailed Description

Definition at line 23 of file LeapBakedRenderer.cs.

Member Enumeration Documentation

◆ MotionType

Enumerator
None 
Translation 

Definition at line 63 of file LeapBakedRenderer.cs.

Member Function Documentation

◆ buildTopology()

override void Leap.Unity.GraphicalRenderer.LeapBakedRenderer.buildTopology ( )
protectedvirtual

Reimplemented from Leap.Unity.GraphicalRenderer.LeapMesherBase.

Definition at line 215 of file LeapBakedRenderer.cs.

◆ doesRequireVertInfo()

override bool Leap.Unity.GraphicalRenderer.LeapBakedRenderer.doesRequireVertInfo ( )
protectedvirtual

Reimplemented from Leap.Unity.GraphicalRenderer.LeapMesherBase.

Definition at line 252 of file LeapBakedRenderer.cs.

◆ GetSpaceSupportInfo()

override SupportInfo Leap.Unity.GraphicalRenderer.LeapBakedRenderer.GetSpaceSupportInfo ( LeapSpace  space)

Definition at line 68 of file LeapBakedRenderer.cs.

◆ graphicVertNormalToMeshVertNormal()

override void Leap.Unity.GraphicalRenderer.LeapBakedRenderer.graphicVertNormalToMeshVertNormal ( Vector3  vertex,
Vector3  normal,
out Vector3  meshVert,
out Vector3  meshNormal 
)
protectedvirtual

Implements Leap.Unity.GraphicalRenderer.LeapMesherBase.

Definition at line 272 of file LeapBakedRenderer.cs.

◆ graphicVertToMeshVert()

override Vector3 Leap.Unity.GraphicalRenderer.LeapBakedRenderer.graphicVertToMeshVert ( Vector3  vertex)
protectedvirtual

Implements Leap.Unity.GraphicalRenderer.LeapMesherBase.

Definition at line 260 of file LeapBakedRenderer.cs.

◆ OnEnableRenderer()

override void Leap.Unity.GraphicalRenderer.LeapBakedRenderer.OnEnableRenderer ( )
virtual

Called when the renderer is enabled at runtime.

Implements Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapMeshGraphicBase >.

Definition at line 78 of file LeapBakedRenderer.cs.

◆ OnUpdateRenderer()

override void Leap.Unity.GraphicalRenderer.LeapBakedRenderer.OnUpdateRenderer ( )
virtual

Called from LateUpdate during runtime. Use this to update the renderer using any changes made to during this frame.

Implements Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapMeshGraphicBase >.

Definition at line 86 of file LeapBakedRenderer.cs.

◆ postProcessMesh()

override void Leap.Unity.GraphicalRenderer.LeapBakedRenderer.postProcessMesh ( )
protectedvirtual

Reimplemented from Leap.Unity.GraphicalRenderer.LeapMesherBase.

Definition at line 244 of file LeapBakedRenderer.cs.

◆ prepareMaterial()

override void Leap.Unity.GraphicalRenderer.LeapBakedRenderer.prepareMaterial ( )
protectedvirtual

Reimplemented from Leap.Unity.GraphicalRenderer.LeapMesherBase.

Definition at line 193 of file LeapBakedRenderer.cs.

Member Data Documentation

◆ DEFAULT_SHADER

const string Leap.Unity.GraphicalRenderer.LeapBakedRenderer.DEFAULT_SHADER = "LeapMotion/GraphicRenderer/Unlit/Baked"
static

Definition at line 25 of file LeapBakedRenderer.cs.


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