ch.sycoforge.Decal
Holds references to the original decal objects.
Class for simple cubic raycasting.
Class providing decal texture animation functionality.
Version 0.3
Renders the animation at the given frame.
Gets a value indicating wheter the animation is finish
Resets the animation.
Returns the render targets for the specified camera.
Gets called after the projection technique has been changed.
This method is synchronized with the main update loop.
Gets called after the deferred flags has been changed.
This method is synchronized with the main update loop.
Gets called after the orientation has been changed.
This method is synchronized with the main update loop.
Gets called after the bake status has been changed.
The decal's bound in world space.
Gets called when the decal's orientation changed (Rotation, Translation, Scale).
This event only gets called when the decal is not baked.
Gets called when the decal's projection technique changed.
This event is syncronized with the main update loop.
Gets called when the decal's deferred flags changed.
This event is syncronized with the main update loop.
Gets called when the decal's bake status changed.
This event is syncronized with the main update loop.
Gets called after the decal object has been destroyed.
Gets or sets a value indicating whether the decal geometry has been baked.
When set to true there are no geometry updates.
The geometry is baked and stays as it is.
Gets or sets a value indicating whether the decal geometry should be baked after awaking.
When set to true there are no geometry updates.
The geometry is baked and stays as it is.
When set to true there are no algorithmic updates
in the editor. The geometry is baked and stays as it is.
Gets or set a value indicating whether faces that point
in opposite projection direction should be culled or not.
Gets the world to local matrix.
Gets the local to world matrix.
Gets or set a value defining the distance of the decal from its parent/s.
Maximum angle allowed before the face gets culled.
The projection technique used to project the decal.
The flags specifying the buffers to write to before the lightning pass.
The skinned mesh renderer or null when not in a skinned projection mode.
The currently assigned projector.
Name of the region.
UV rectangle defining the actual atlas region. Origin (0/0) is located in the top-left corner.
Aspect ration of the region.
Defines the technique used to project the decal.
Project a plane. [Mesh based]
Project within a bounding box. [Mesh based]
Projects the decal in screen space.
Projects the decal in screen space using deferred rendering path.
Project within a bounding box to skinned meshes. [Mesh based]
Flags describing what get rendered to the buffers before lightning pass.
Defines the mode used to store/control the opacity.
Defines the mode of the recursive lookup.
Recursively search only in parents.
Recursively search only in children.
Recursively search in parents and children.
Defines the fading mode of decal.
Gradually fades out the decal (defined by curve).
Gradually fades in the decal (defined by curve).
Immediately hides the decal.
Immediately shows the decal.
Defines the mode of the decal projection.
Project along the receivers surface normal.
Project along the projection ray.
Defines the mode of a specified geometry channel.
Ignore this channel.
Try using the source's channel.
Try caculating the channel.
Defines the source mode of the decal.
Use a single material as source.
Use an atlas as source
Defines the mode used for the auto aspect correction.
Don't correct the aspect ratio at all.
Preserve the width while correcting.
Preserve the height while correcting.
Class providing advanced decal projection functionality.
The maximum quality allowed when using the RayProjector.
Gets called when the decal has started to fade out.
Gets called after the decal was projected and before the mesh gets assigned to the MeshFilter.
Holds the all static colliders for this runtime instance.
Defines a flag whether the generated mesh should be hidden in the editor hierarchy.
Assign an instantiation method to override the default creation method.
When instantiating a decal in the scene root, the parent argument is null.
E.g. when using an external pooling system.
Resets the decal object to its initial Awake() state.
This method should be called when the decal object gets recycled.
Resets the decal object to its initial Awake() state.
This method should be called when the decal object gets recycled.
Should the decal be unbaked?
Resets the decal object to its initial Awake() state.
This method should be called when the decal object gets recycled.
Should the decal be unbaked?
Should the decal's geometry be recreated?
Starts the fading process.
Cancels the fading process.
Selects a random atlas index.
Corrects the decal's aspect according the AspectCorrectionMode property.
Internally used by the invoke method.
Starts fading the decal in or out.
The fading mode used.
Creates a game object wrapping the projection plane mesh.
The wrapping game object.
Gets called by the projector after all cutting/projection work has been done.
Applies all instance specific properties to the mesh.
Applies all instance specific properties to the mesh.
TransformGeometry the UVs from normalized UV space to atlas UV space.
Resets all projection planes.
Updates the decal geometry.
Unbakes the decal in the next frame.
Bakes the decal in the next frame.
Bakes the decal in a specified amount of frames.
Frame offset used to postpone the baking process by the specified amount of frames. Value has to be greater than zero (0).
Clones
Sets the game objects that are possible decal receivers.
Set to null when a linear scene search should be perfomed instead.
The game objects that are possible decal receivers.
The decal object or null if the projection criteria was not fulfilled.
Instantiates the prefab at the hit point of the specified ray.
The decal prefab.
The decal parent (parent).
The decal's position.
The sender's forward orientation.
The sender's up orientation.
The decal object or null if the projection criteria was not fulfilled.
Instantiates the prefab at the specified position and rotation as child of parent.
The decal prefab.
The decal parent (parent).
The decal's position.
The decal's rotation.
The decal object or null if the projection criteria was not fulfilled.
Instantiates the prefab at the specified position and specified normal direction as child of parent.
The decal prefab.
The decal parent (parent).
The decal's position.
The parent's surface normal.
The decal object or null if the projection criteria was not fulfilled.
Instantiates the prefab at the specified position facing in the specified normal direction and rotation as child of parent.
The decal prefab.
The decal parent (parent).
The decal's position.
The parent's surface normal.
The rotation along the receivers normal axis.
The decal object or null if the projection criteria was not fulfilled.
Instantiates the prefab at the specified position facing in the specified normal direction and rotation as child of parent.
The decal prefab.
The decal parent (parent).
The decal's position.
The parent's surface normal.
The rotation along the receivers normal axis.
The scale of the decal.
The decal object or null if the projection criteria was not fulfilled.
Instantiates the prefab at the specified position and rotation as child of parent.
The decal prefab.
The decal's position.
The decal's rotation.
The decal object or null if the projection criteria was not fulfilled.
Instantiates the prefab at the specified position facing in the specified normal direction.
The decal prefab.
The decal's position.
The parent's surface normal.
The decal object or null if the projection criteria was not fulfilled.
Instantiates the prefab at the specified position facing in the specified normal direction and rotation.
The decal prefab.
The decal's position.
The parent's surface normal.
The rotation along the receivers normal axis.
The decal object or null if the projection criteria was not fulfilled.
Instantiates the prefab at the specified position facing in the specified ray direction.
The decal prefab.
The decal's position.
The sender's ray.
The decal object or null if the projection criteria was not fulfilled.
Searches children decals.
The parent cachedTransform
The children found on this cachedTransform
Gets called when the decal has completely faded out.
Gets called when the decal has completely faded out.
Gets called when the decal has started to fade out.
Gets called after the decal was projected and before the mesh gets assigned to the MeshFilter.
Gets called after the atlas index has been changed.
Gets called after the source mode has been changed.
Gets or sets the skinning quality.
Only used when the projection technique is set to SkinnedBox
Gets the shared mesh for this decal instance.
Please note that this property is null when no projection cycle has been processed.
Gets a value indicating whether the decal is visible or not.
The quality of the projected mesh.
Note: be carefull with high quality settings, because of the quadratic performance impact.
Determines wheter it's allowed to project the decal to combined meshes.
For dynamic object this should be set to true.
Determines wheter it's allowed to project the decal to invisible meshes.
A mesh is invisible when either no MeshRenderer is attached or it's disabled.
Determines wheter it's allowed to project the decal to to unreachable geometry.
Note: with this option enabled performance may be lower.
Gets the parent of the decal.
Gets or sets a value indicating wheter mesh tangents should be calculated.
Gets or set the mode for the tangent channel.
See
Gets or sets a value indicating wheter mesh normals should be calculated.
Gets or set the mode for the normal channel.
See
Gets or sets a value indicating wheter the projection direction should be displayed.
Gets or sets a value indicating wheter the vertices of the projected polygons should be displayed.
Gets or sets a value indicating wheter the normals should be displayed.
Gets or set a value defining the maximal distance between a vertex and the objects pivot.
Gets or set a value defining the distance of the projection rays from the parent's surface.
Gets or set a value defining whether the mesh's surface normals should be smoothed.
Gets or set a value defining the mesh's surface normals.
Gets or set a threshold value describing from when the mesh's surface normals get smooth.
0.0 means all normals get smooth,
0.5 means all normals with a an angle greater than 45 deggree (to the projection direction) get smoothed
1.0 no means normals get smoothed.
Gets or set a value defining whether the decal should be destroyed after fading out.
Enable this option when using the decal with pooling system.
Gets or set a value defining whether the decal should be faded out after some time.
Gets or set a value defining the mode used for the opacity. It's set to OpacityMode.Geometry per default.
Gets or set a value defining the decal's lifetime in seconds.
Gets a value defining the decal's remaining lifetime.
Gets a value holding the time in seconds until the decal will be completely faded out.
Gets or set a value defining the decal's fadeout time. The fade out starts when the lifetime elapsed.
Gets or set a curve describing the decal's fadeout process.
Holds the inverse projection direction.
The decal's surface rotation.
Note: This property is only set in the editor.
Gets or set a material for rendering the decal.
Note: This is a shared material.
Gets or set an atlas used for rendering the decal.
Note: The underlying material gets shared between instances.
Gets or sets the active region index of the atlas.
The game object created by the dynamic geometry system.
The projection mode of the decal.
The source mode of the decal.
The mode used by the auto apsect correction.
The lookup mode used for finding possible projection targets.
The overall transparency of the decal [0..1].
Is the decal currently fading out?
Is the decal currently fading in or out?
Gets or sets a value indicating whether the decal can only
be projected to meshes with a collider component attched.
Enables or disables recursive mesh lookup on the parent.
When enabled the projector searches for meshes in the game object hierarchy.
Enables or disables the random atlas index selection on instantiation.
Sets the steps used for the recursive mesh lookup in the game object hierarchy.
Do not set this value too high as it could impact your performance.
List of IMeshProcessors that get processed after projection, but before uv transformation, normal and tangent calculation.
Enable light probes for the decals.
Provides functionality for storing decals.
Adds an new decal instance to the manager's scope.
The decal to add.
Removes the specified decal instance from the manager's scope.
The decal to remove.
Provides functionalities for managing decals.
Gets all registered deferred decals buffer groups in the current scene.
Returns the matched decals.
Gets all registered deferred decals in scene matching the specified flags.
the filter flag.
Returns the matched decals.
Gets all registered deferred decals in scene.
Returns all registered deferred decals in scene.
Adds an new decal instance to the manager's scope.
The decal to add.
Removes the specified decal instance from the manager's scope.
The decal to remove.
Updates the data set for the editor.
Don't call this method manually.
Returns a list of all flag permutations of the specified enum.
The [Flags] enum.
Class for mesh raycasting.
Mesh utillities for traversing vertices and triangles.
Finds all adjacents vertex indices for the specified vertex.
The vertices
The triangles
The index specifying the vertex.
The indices of the adjacents.
Calculates the tangents of the mesh.
The vertices
The normals
The uvs
The triangles
Returns the amount the specified normal vector faces the inversed projection direction.
In the range of [0..1].
Where 1 means 100% facing and 0 0% facing (opposite direction).
Calculates the tangents of the mesh.
The mesh to calculate the tangents for.
Defines a dynamic mesh.
Gets the mesh's normals.
Gets the mesh's tangents.
Gets the mesh's vertex colors.
Gets the mesh's triangles.
Gets the mesh's uvs.
Gets the mesh's uv2s.
Gets the mesh's vertices.
The mesh's texture coordinates uvs.
The mesh's texture coordinates uv2s.
The mesh's vertices.
The mesh's normals.
The mesh's tangents.
The mesh's vertex colors.
The mesh's triangles.
Clears the mesh data.
Add the specified mesh to the dynamic mesh structure.
The mesh.
The local to world transformation matrix.
Add the specified terrain to the dynamic mesh.
The terrain object.
The local to world matrix.
Gets called after every vertex processing iteration.
The index of the process vertex.
Is the processed vertex valid or will it be culled from the resulting mesh?
Adds a DynamicMesh instance to the current instance.
An other DynamicMesh instance to add.
Local to world matrix of the source mesh.
World to local matrix of the source mesh.
Converts the current instance to an Unity Mesh.
When the specified target mesh is null a new instance gets created.
A mesh target or null to create a new instance.
When set to true the whole mesh gets recreated.
The converted mesh.
Removes the triangle at the specified index.
The index of the triangle to remove.
Removes a specified amount of triangles starting at the specified index.
Index to start removing from.
The amount of triangles to remove.
Gets the mesh's vertices.
Gets the mesh's normals.
Gets the mesh's tangents.
Gets the mesh's vertex colors.
Gets the mesh's triangles.
Gets the mesh's uvs.
Gets the mesh's uv2s.
Gets a value indicating whether the mesh has a fixed size.
The skinned mesh's bones.
The skinned mesh's bind poses.
The skinned mesh's bone weights.
The skinned mesh's bone weights.
Add the specified mesh to the dynamic mesh structure.
The mesh to add.
The bones to add.
The local to world transformation matrix (Source Mesh).
The skinned mesh's bones.
The skinned mesh's bind poses.
The skinned mesh's bone weights.
Cuts the specified mesh along the tranform box of the parent projector and reculculate the uv coordinates.
The dynamic mesh to cut.
Removes the indices.
Updates the projector.
Updates the vertex color channel according the parent's alpha property.
The parent of by this projector instance.
The DynamicMesh instance used by this projector instance.
Gets a value indicating whether the decal is visible or not by the main camera (Camera.main).
The geometry is fixed and gets never changed except at the first initialization.
Clamps the specified index into a valid range.
The index to clamp.
The clamped index.
Creates a plane.
Creates a plane.
Creates a plane.
Returns a signed distance from plane to point.
Is a point on the positive side of the plane?
Are two points on the same side of the plane?
Sets a plane using three points that lie within it. The points go around clockwise as you look down on the top surface of the plane.
First point in clockwise order.
Second point in clockwise order.
Third point in clockwise order.
Sets a plane using a point that lies within it along with a normal to orient it.
The plane's normal vector.
A point that lies on the plane.
Distance from the origin (3d space) to the plane.
normal vector of the plane.
The origin of the plane (origin is always on the plane).
Creates a new projection grid.
Editor only. Gets called when the decal atlas was changaed.