-
Notifications
You must be signed in to change notification settings - Fork 861
Hdrp/update decal handles pivot #3001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 15 commits
8ad03d4
3d189b3
eadb3a1
03fe677
5b48a5f
e42c590
1a5ee32
0b04775
b5bffe0
3bdc6b2
ea4dde4
21d850a
5a89574
0ccf247
f326fef
5a64b78
523adec
e911d2e
98b2060
b27d81b
607f609
054b033
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,29 +14,33 @@ The Decal Projector includes a Scene view representation of its bounds and proje | |
|
|
||
| * A box that describes the 3D size of the projector; the projector draws its decal on every Material inside the box. | ||
|
|
||
| * An arrow that indicates the direction the projector faces. | ||
| * An arrow that indicates the direction the projector faces. This arrow is on the pivot point. | ||
|
||
|
|
||
|  | ||
|
|
||
| The decal Projector also includes two gizmos that add handles on every face for you to click and drag to alter the size of the projector's bounds. | ||
| The decal Projector also includes three gizmos. The first two add handles on every face for you to click and drag to alter the size of the projector's bounds. | ||
|
|
||
| |**Button**|**Gizmo**|**Description**| | ||
| |-----|-----|-----| | ||
| ||**Scale**|Scales the decal with the projector box. This changes the UVs of the Material to match the size of the projector box. This stretches the decal.| | ||
| ||**Crop**|Crops the decal with the projector box. This changes the size of the projector box but not the UVs of the Material. This crops the decal.| | ||
| ||**Scale**|Scales the decal with the projector box. This changes the UVs of the Material to match the size of the projector box. This stretches the decal. The Pivot remains still.| | ||
| ||**Crop**|Crops the decal with the projector box. This changes the size of the projector box but not the UVs of the Material. This crops the decal. The Pivot remains still.| | ||
| ||**Pivot / UV**|Move the pivot without moving the projection box. This alter the transform position.<br />Also, set the UV used on the projected texture.| | ||
|
||
|
|
||
| The color of the gizmos can be set up in the Preference window inside Color panel. | ||
|
|
||
| ## Using the Inspector | ||
|
|
||
| Using the Inspector allows you to change all of the Decal Projector properties, and lets you use numerical values for **Size**, **Tiling**, and **Offset**, which allows for greater precision than the click-and-drag gizmo method. | ||
|
|
||
| ## Properties | ||
|
|
||
|  | ||
|  | ||
|
|
||
| | **Property** | **Description** | | ||
| | ----------------------- | ------------------------------------------------------------ | | ||
| | **Size** | The size of the projector influence box, and thus the decal along the projected plane. The projector scales the decal to match the **Width** (along the local x-axis) and **Height** (along the local y-axis) components of the **Size**. | | ||
| | **Projection Depth** | The depth of the projector influence box. The projector scales the decal to match **Projection Depth**. The Decal Projector component projects decals along the local z-axis. | | ||
| | **Pivot** | The offset position of the transform regarding the projection box. Adjusting X and Y allows to make rotation of the projected texture around a specific position, while Z allows to have a specific offset in depth. | | ||
|
||
| | **Material** | The decal Material to project. The decal Material must use a HDRP/Decal Shader. | | ||
| | **Decal Layer** | The layer that specifies the Materials to project the decal onto. Any Mesh Renderers or Terrain that uses a matching Decal Layer receives the decal. | | ||
| | **Draw Distance** | The distance from the Camera to the Decal at which this projector stops projecting the decal and HDRP no longer renders the decal. | | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In
DisplacableRectHandles.baseColorwe also have the same alpha values, can have them declared somewhere? Just in case we want to change them will be equal in both places. Maybe a static functionSetAlphaHandleValues()?