ampwiki>Amplify RnD Rick |
|
Line 1: |
Line 1: |
| [[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
| | {| style="width: 100%; horizontal-align: right;" |
| | | |
| | Amplify Creations Dev Stream #2 - Omni Decals |
|
| |
|
| == Matrix From Vector Node == | | Files: https://drive.google.com/open?id=1T3fBAA6jE-RYrvj11WQ168jOtj42wKiM |
|
| |
|
| The Matrix From Vector node creates and outputs a matrix from vectors specified by its input parameters and size specified by its [[#paramOutputType|Output Type]].<br/>
| | |{{#evt: |
| | service=youtube |
| | |id=https://youtu.be/bb7BGBy0KIY |
| | |alignment=right |
| | }} |
| | |} |
|
| |
|
| <img class="responsive-img" src="http://wiki.amplify.pt/images/NodeDetail/MatrixFromVectorsNode.jpg">
| |
| <br/><font size="1">Nodes used:
| |
| [[Unity_Products:Amplify_Shader_Editor/Vertex_Normal|Vertex Normal]],
| |
| [[Unity_Products:Amplify_Shader_Editor/Vertex_Tangent|Vertex Tangent]],
| |
| [[Unity_Products:Amplify_Shader_Editor/Cross|Cross]],
| |
| [[Unity_Products:Amplify_Shader_Editor/Matrix_From_Vectors|Matrix From Vectors]],
| |
| [[Unity_Products:Amplify_Shader_Editor/Vertex_Position|Vertex Position]],
| |
| [[Unity_Products:Amplify_Shader_Editor/Multiply|Multiply]]
| |
| </font>
| |
|
| |
|
| {| class="wikitable" style="width: 100%;" | | {| style="width: 100%; horizontal-align: right;" |
| |-
| | | |
| ! style="width: 10%;" | Node Parameter !! Description !! style="width: 10%;" | Default Value
| | Amplify Creations Dev Stream #3 - Custom Lighting Breakdown |
| |-
| | |
| | id="paramOutputType" | Output Type
| | Files: https://drive.google.com/open?id=1GLXpXBxyi81YpBKErT8LaEnrdA6FcZxU |
| | Specifies the size of the matrix to be created and outputted
| |
| * '''Matrix3x3:''' Creates a 3x3 matrix from three float3 vectors specified by the node input
| |
| * '''Matrix4x4:''' Creates a 4x4 matrix from four float4 vectors specified by the node input
| |
| | Matrix3x3
| |
| |-
| |
| | id="paramInputToRow" | Input to Row
| |
| | Specifies if input vectors are matrix rows or columns.
| |
| | true
| |
| |- style="background: #e5e5e5;" |
| |
| | id="param0" | [0]
| |
| | Vector to be placed at the matrix first row/column. Only visible if the respective input port is not connected.
| |
| | 0,0,0
| |
| |- style="background: #e5e5e5;" |
| |
| | id="param1" | [1]
| |
| | Vector to be placed at the matrix second row/column.. Only visible if the respective input port is not connected.
| |
| | 0,0,0
| |
| |- style="background: #e5e5e5;" |
| |
| |id="param2" | [2]
| |
| |Vector to be placed at the matrix third row/column. Only visible if the respective input port is not connected.
| |
| | 0,0,0
| |
| |- style="background: #e5e5e5;" |
| |
| |id="param3" | [3]
| |
| | Vector to be placed at the matrix fourth row/column. Only visible if the respective input port is not connected and Output Type is Matrix4x4.
| |
| | 0,0,0,0
| |
| |}
| |
|
| |
|
| {| class="wikitable" style="width: 100%;" | | |{{#evt: |
| |-
| | service=youtube |
| ! style="width: 10%;" | Input Port !! Description !! style="width: 10%;" | Type
| | |id=https://youtu.be/4hUHvUYcvUs |
| |-
| | |alignment=right |
| | [0]
| | }} |
| | Vector to be placed at the matrix first row/column.
| |
| | Float3/Float4
| |
| |-
| |
| | [1]
| |
| | Vector to be placed at the matrix second row/column.
| |
| | Float3/Float4
| |
| |-
| |
| | [2]
| |
| | Vector to be placed at the matrix third row/column.
| |
| | Float3/Float4 | |
| |- style="background: #e5e5e5;" |
| |
| | [3]
| |
| | Vector to be placed at the matrix fourth row/column. Only available when Output Type is Matrix4x4.
| |
| | Float4
| |
| |} | | |} |
|
| |
|
| |
| [[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
| |
| [[Category:Nodes]][[Category:Matrix Operators]]
| |