diff --git a/com.unity.shadergraph/Documentation~/Input-Nodes.md b/com.unity.shadergraph/Documentation~/Input-Nodes.md index f21a02cb834..5ad0cc06939 100644 --- a/com.unity.shadergraph/Documentation~/Input-Nodes.md +++ b/com.unity.shadergraph/Documentation~/Input-Nodes.md @@ -90,22 +90,25 @@ ## Texture -|[Cubemap Asset](Cubemap-Asset-Node.md)|[Sample Cubemap](Sample-Cubemap-Node.md)| +|[**Cubemap Asset**](Cubemap-Asset-Node.md)|[**Sample Cubemap**](Sample-Cubemap-Node.md)| |:--------:|:------:| |[![Image](images/CubemapAssetNodeThumb.png)](Combine-Node)|![](images/SampleCubemapNodeThumb.png)| | Defines a constant Cubemap Asset for use in the shader. | Samples a Cubemap and returns a Vector 4 color value for use in the shader. | -|[**Sample Texture 2D**](Sample-Texture-2D-Node.md)|[**Sample Texture 2D Array**](Sample-Texture-2D-Array-Node.md)| -|![Image](images/SampleTexture2DNodeThumb.png)|![Image](images/SampleTexture2DArrayNodeThumb.png)| -|Samples a Texture 2D and returns a color value for use in the shader.|Samples a Texture 2D Array at an Index and returns a color value for use in the shader.| -|[**Sample Texture 2D LOD**](Sample-Texture-2D-LOD-Node.md)|[**Sample Texture 3D**](Sample-Texture-3D-Node.md)| -|![Image](images/SampleTexture2DLODNodeThumb.png)|![Image](images/SampleTexture3DNodeThumb.png)| -|Samples a Texture 2D at a specific LOD and returns a color value for use in the shader.|Samples a Texture 3D and returns a color value for use in the shader.| -| [**Sample Virtual Texture**](Sample-Virtual-Texture-Node.md) | [**Sampler State**](Sampler-State-Node.md) | -| ![image](images/SampleVirtualTextureNodeThumb.png) | ![Image](images/SamplerStateNodeThumb.png) | -| Samples a Virtual Texture and returns color values for use in the shader. | Defines a Sampler State for sampling textures.| -|[**Texel Size**](Texel-Size-Node.md)| [**Texture 2D Array Asset**](Texture-2D-Array-Asset-Node.md)| -|![Image](images/TexelSizeNodeThumb.png)| ![Image](images/Texture2DArrayAssetNodeThumb.png)| -|Returns the Width and Height of the texel size of Texture 2D input.| Defines a constant Texture 2D Array Asset for use in the shader.| -|[**Texture 2D Asset**](Texture-2D-Asset-Node.md)|[**Texture 3D Asset**](Texture-3D-Asset-Node.md)| -|![Image](images/Texture2DAssetNodeThumb.png)| ![Image](images/Texture3DAssetNodeThumb.png)| -|Defines a constant Texture 2D Asset for use in the shader.| Defines a constant Texture 3D Asset for use in the shader.| +|[**Sample Reflected Cubemap Node**](Sample-Reflected-Cubemap-Node.md)|[**Sample Texture 2D**](Sample-Texture-2D-Node.md)| +|![Image](images/SampleReflectedCubemapThumb.png)|![Image](images/SampleTexture2DNodeThumb.png)| +|Samples a Cubemap with reflected vector and returns a Vector 4 color value for use in the shader.|Samples a Texture 2D and returns a color value for use in the shader.| +|[**Sample Texture 2D Array**](Sample-Texture-2D-Array-Node.md)|[**Sample Texture 2D LOD**](Sample-Texture-2D-LOD-Node.md)| +|![Image](images/SampleTexture2DArrayNodeThumb.png)|![Image](images/SampleTexture2DLODNodeThumb.png)| +|Samples a Texture 2D Array at an Index and returns a color value for use in the shader.|Samples a Texture 2D at a specific LOD and returns a color value for use in the shader.| +|[**Sample Texture 3D**](Sample-Texture-3D-Node.md)| [**Sample Virtual Texture**](Sample-Virtual-Texture-Node.md) | +|![Image](images/SampleTexture3DNodeThumb.png)| ![image](images/SampleVirtualTextureNodeThumb.png) | +|Samples a Texture 3D and returns a color value for use in the shader.| Samples a Virtual Texture and returns color values for use in the shader.| +|[**Sampler State**](Sampler-State-Node.md)|[**Texel Size**](Texel-Size-Node.md)| +|![Image](images/SamplerStateNodeThumb.png)|![Image](images/TexelSizeNodeThumb.png)| +|Defines a Sampler State for sampling textures.|Returns the Width and Height of the texel size of Texture 2D input.| +|[**Texture 2D Array Asset**](Texture-2D-Array-Asset-Node.md)|[**Texture 2D Asset**](Texture-2D-Asset-Node.md)| +|![Image](images/Texture2DArrayAssetNodeThumb.png)|![Image](images/Texture2DAssetNodeThumb.png)| +|Defines a constant Texture 2D Array Asset for use in the shader.|Defines a constant Texture 2D Asset for use in the shader.| +|[**Texture 3D Asset**](Texture-3D-Asset-Node.md)| | +|![Image](images/Texture3DAssetNodeThumb.png)| | +|Defines a constant Texture 3D Asset for use in the shader.| | \ No newline at end of file diff --git a/com.unity.shadergraph/Documentation~/Sample-Cubemap-Node.md b/com.unity.shadergraph/Documentation~/Sample-Cubemap-Node.md index 969a0a54797..c6b02d14aae 100644 --- a/com.unity.shadergraph/Documentation~/Sample-Cubemap-Node.md +++ b/com.unity.shadergraph/Documentation~/Sample-Cubemap-Node.md @@ -2,7 +2,7 @@ ## Description -Samples a **Cubemap** and returns a **Vector 4** color value for use in the shader. Requires a **Direction** input in world space to sample the **Cubemap**. You can achieve a blurring effect by sampling at a different Level of Detail using the **LOD** input. You can also define a custom **Sampler State** using the **Sampler** input. +Samples a Cubemap and returns a Vector 4 color value for use in the shader. Requires a Direction (**Dir**) input in world space to sample the Cubemap. You can achieve a blurring effect by using the **LOD** input to sample at a different Level of Detail. You can also use the **Sampler** input to define a custom Sampler State. ## Ports @@ -10,7 +10,7 @@ Samples a **Cubemap** and returns a **Vector 4** color value for use in the shad |:------------ |:-------------|:-----|:---|:---| | Cube | Input | Cubemap | None | Cubemap to sample | | Dir | Input | Vector 3 | Normal (world space) | Direction or Mesh's normal vector | -| Sampler | Input | Sampler State | Default sampler state | Sampler for the **Cubemap** | +| Sampler | Input | Sampler State | Default sampler state | Sampler for the Cubemap | | LOD | Input | Float | None | Level of detail for sampling | | Out | Output | Vector 4 | None | Output value | diff --git a/com.unity.shadergraph/Documentation~/Sample-Reflected-Cubemap-Node.md b/com.unity.shadergraph/Documentation~/Sample-Reflected-Cubemap-Node.md index 3e4f9252577..e6431cbc4a3 100644 --- a/com.unity.shadergraph/Documentation~/Sample-Reflected-Cubemap-Node.md +++ b/com.unity.shadergraph/Documentation~/Sample-Reflected-Cubemap-Node.md @@ -1,8 +1,8 @@ -# Sample Cubemap Node +# Sample Reflected Cubemap Node ## Description -Samples a **Cubemap** with reflected vector and returns a **Vector 4** color value for use in the shader. Requires **View Direction** and **Normal** inputs to sample the **Cubemap**. You can achieve a blurring effect by sampling at a different Level of Detail using the **LOD** input. You can also define a custom **Sampler State** using the **Sampler** input. +Samples a Cubemap with reflected vector and returns a Vector 4 color value for use in the shader. Requires View Direction (**View Dir**) and **Normal** inputs to sample the Cubemap. You can achieve a blurring effect by using the **LOD** input to sample at a different Level of Detail. You can also use the **Sampler** input to define a custom Sampler State. ## Ports @@ -11,7 +11,7 @@ Samples a **Cubemap** with reflected vector and returns a **Vector 4** color val | Cube | Input | Cubemap | None | Cubemap to sample | | View Dir | Input | Vector 3 | View Direction (object space) | Mesh's view direction | | Normal | Input | Vector 3 | Normal (object space) | Mesh's normal vector | -| Sampler | Input | Sampler State | Default sampler state | Sampler for the **Cubemap** | +| Sampler | Input | Sampler State | Default sampler state | Sampler for the Cubemap | | LOD | Input | Float | None | Level of detail for sampling | | Out | Output | Vector 4 | None | Output value | diff --git a/com.unity.shadergraph/Documentation~/Upgrade-Guide-10-0-x.md b/com.unity.shadergraph/Documentation~/Upgrade-Guide-10-0-x.md index 745bf315385..37068654258 100644 --- a/com.unity.shadergraph/Documentation~/Upgrade-Guide-10-0-x.md +++ b/com.unity.shadergraph/Documentation~/Upgrade-Guide-10-0-x.md @@ -4,9 +4,9 @@ Shader Graph has renamed the **Vector 1** property as **Float** in both the Vector 1 node and the exposed parameter list. The **Float** precision was also renamed as **Single**. Behavior is exactly the same, and only the names have changed. -## Renamed Sample Cubemap +## Renamed Sample Cubemap Node -Shader Graph has renamed the previous Sample Cubemap Node **to** Sample Reflected Cubemap**,** and **has** added a new Sample Cubemap**,** which **uses** world space direction. +Shader Graph has renamed the previous Sample Cubemap Node to [Sample Reflected Cubemap Node](Sample-Reflected-Cubemap-Node.md), and has added a new [Sample Cubemap Node](Sample-Cubemap-Node.md), which uses world space direction. ## Master Stack graph output diff --git a/com.unity.shadergraph/Documentation~/images/SampleCubemapNodeThumb.png b/com.unity.shadergraph/Documentation~/images/SampleCubemapNodeThumb.png index 416d91dde9d..4221429ea3b 100644 --- a/com.unity.shadergraph/Documentation~/images/SampleCubemapNodeThumb.png +++ b/com.unity.shadergraph/Documentation~/images/SampleCubemapNodeThumb.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5deaa6a1985ed29003793c2f7534774c1dedbae859f9a7a7d53f48cd5c6a4992 -size 31787 +oid sha256:3c52f7e22d78f83f9c377a4619f66f95c13bdf454d0c060274d16706b4c25a6e +size 11174 diff --git a/com.unity.shadergraph/Documentation~/images/SampleReflectedCubemapThumb.png b/com.unity.shadergraph/Documentation~/images/SampleReflectedCubemapThumb.png new file mode 100644 index 00000000000..416d91dde9d --- /dev/null +++ b/com.unity.shadergraph/Documentation~/images/SampleReflectedCubemapThumb.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5deaa6a1985ed29003793c2f7534774c1dedbae859f9a7a7d53f48cd5c6a4992 +size 31787