<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Unity Archives - Boar&#039;s Head Studio</title>
	<atom:link href="https://www.boarsheadstudio.com/category/unity/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.boarsheadstudio.com/category/unity/</link>
	<description>abandon the monotony and embrace a new reality</description>
	<lastBuildDate>Thu, 31 Oct 2024 03:48:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/09/cropped-BHS_YouTube_Logo-1.png?fit=32%2C32&#038;ssl=1</url>
	<title>Unity Archives - Boar&#039;s Head Studio</title>
	<link>https://www.boarsheadstudio.com/category/unity/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">233504254</site>	<item>
		<title>Scrolling UV Shader Graph (scrolling texture/material)</title>
		<link>https://www.boarsheadstudio.com/scrolling-uv-shader-graph-scrolling-texture-material/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=scrolling-uv-shader-graph-scrolling-texture-material</link>
					<comments>https://www.boarsheadstudio.com/scrolling-uv-shader-graph-scrolling-texture-material/#respond</comments>
		
		<dc:creator><![CDATA[Doug]]></dc:creator>
		<pubDate>Tue, 29 Oct 2024 02:39:22 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[Shader Graph]]></category>
		<category><![CDATA[URP]]></category>
		<guid isPermaLink="false">https://www.boarsheadstudio.com/?p=503</guid>

					<description><![CDATA[<p>Here is how you can create a scrolling texture or material. Useful for many purposes such as having a box with a scrolling arrow on it or having a scrolling image on a plane so it looks like your side-scroller game never ends. First, you need to create a sub-shader graph. Right-click in your assets [&#8230;]</p>
<p>The post <a href="https://www.boarsheadstudio.com/scrolling-uv-shader-graph-scrolling-texture-material/">Scrolling UV Shader Graph (scrolling texture/material)</a> appeared first on <a href="https://www.boarsheadstudio.com">Boar&#039;s Head Studio</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Here is how you can create a scrolling texture or material. Useful for many purposes such as having a box with a scrolling arrow on it or having a scrolling image on a plane so it looks like your side-scroller game never ends.</p>



<p class="wp-block-paragraph">First, you need to create a sub-shader graph. Right-click in your assets folder, select Create > Shader Graph > Sub Graph. Give it a name. I like to start all my names with BH_. This way, when I&#8217;m searching, I can type BH_ and immediately filter to just my custom content. I named it &#8220;BH_SG_ScrollUV&#8221;.</p>



<p class="wp-block-paragraph">Now edit your sub-graph.</p>



<p class="wp-block-paragraph">First, select the Output node. Change it from a Vector 4 to a Vector 2. Now, change the name (click on the name next to the =) to UV.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" decoding="async" width="279" height="120" src="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-7.png?resize=279%2C120&#038;ssl=1" alt="" class="wp-image-509"/></figure>



<p class="wp-block-paragraph"> Now we need to add 3 variables:<br>&#8211; Vector2 named Tiling with Default values x = 1 and y = 1.<br>&#8211; Vector2 named ScrollSpeed<br>&#8211; Vector4 named UV</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" decoding="async" width="200" height="178" src="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-2.png?resize=200%2C178&#038;ssl=1" alt="" class="wp-image-504"/></figure>



<p class="wp-block-paragraph">Now Right-click, select Create Node, and type Tiling. Double-click on the Tiling And Offset node.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="381" height="361" src="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-3.png?resize=381%2C361&#038;ssl=1" alt="" class="wp-image-505" srcset="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-3.png?w=381&amp;ssl=1 381w, https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-3.png?resize=300%2C284&amp;ssl=1 300w" sizes="(max-width: 381px) 100vw, 381px" /></figure>



<p class="wp-block-paragraph">Now, left-click and drag your UV and Tiling variables onto the design surface. Now attach them to UV(2) and Tiling(2) on your Tiling &amp; Offset node by left-click and drag from the circles on your variable nodes to the corresponding points on the Tiling &amp; Offset node.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="423" height="356" src="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-4.png?resize=423%2C356&#038;ssl=1" alt="" class="wp-image-506" srcset="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-4.png?w=423&amp;ssl=1 423w, https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-4.png?resize=300%2C252&amp;ssl=1 300w" sizes="(max-width: 423px) 100vw, 423px" /></figure>



<p class="wp-block-paragraph">Now, right-click on the design surface, select Create Node, type Time, and double click on the Time node.</p>



<p class="wp-block-paragraph">Left-click and drag out from the circle on the Time node labeled Time(1). Release your mouse button on the design surface. Type Multiple. Double-click the Multiply: A(4) node. (If you double-click the B(4) node, then Time(1) will automatically connect to the B multiple node. Since you selected A(4), Time(1) automatically connects to the A node).</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="446" height="321" src="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-5.png?resize=446%2C321&#038;ssl=1" alt="" class="wp-image-507" srcset="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-5.png?w=446&amp;ssl=1 446w, https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-5.png?resize=300%2C216&amp;ssl=1 300w" sizes="(max-width: 446px) 100vw, 446px" /></figure>



<p class="wp-block-paragraph">Now, drag out the ScrollSpeed variable and place it under the Time variable. Left-click and drag the circle from ScrollSpeed to the B(1) circle on the Multiply node.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="459" height="326" src="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-6.png?resize=459%2C326&#038;ssl=1" alt="" class="wp-image-508" srcset="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-6.png?w=459&amp;ssl=1 459w, https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-6.png?resize=300%2C213&amp;ssl=1 300w" sizes="(max-width: 459px) 100vw, 459px" /></figure>



<p class="wp-block-paragraph">Now connect Multiply: Out(2) to Tiling And Offset: Offset(2). Then, connect Tiling And Offset: Out(2) to Output: UV(2).</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="993" height="402" src="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-8.png?resize=993%2C402&#038;ssl=1" alt="" class="wp-image-510" srcset="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-8.png?w=993&amp;ssl=1 993w, https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-8.png?resize=300%2C121&amp;ssl=1 300w, https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-8.png?resize=768%2C311&amp;ssl=1 768w" sizes="(max-width: 993px) 100vw, 993px" /></figure>



<p class="wp-block-paragraph">Click the SAVE button. (You MUST click the save button to save)</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="206" height="146" src="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-9.png?resize=206%2C146&#038;ssl=1" alt="" class="wp-image-511"/></figure>



<p class="wp-block-paragraph">Now, right-click on the tab and select Close Tab.</p>



<p class="wp-block-paragraph">Now that you have a sub-graph setup to scroll your textures, I&#8217;m going to leave it up to you to figure out the rest. Here&#8217;s a couple hints:<br>&#8211; Create a new Shader Graph.<br>&#8211; You can add your sub-graph if you Create Node and start to type the name of your sub-graph.<br>&#8211; Yes, you need to create variables to plug into your sub-graph.<br>&#8211; Create a new material and change the Shader to your new Shader Graph.<br>&#8211; Apply the material to a box. Set the ScollSpeed to a value other than 1.</p>



<figure class="wp-block-image size-full is-resized"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1200" height="493" src="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-10.png?resize=1200%2C493&#038;ssl=1" alt="" class="wp-image-512" style="width:1191px;height:auto" srcset="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-10.png?w=1704&amp;ssl=1 1704w, https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-10.png?resize=300%2C123&amp;ssl=1 300w, https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-10.png?resize=1024%2C421&amp;ssl=1 1024w, https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-10.png?resize=768%2C315&amp;ssl=1 768w, https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-10.png?resize=1536%2C631&amp;ssl=1 1536w" sizes="(max-width: 1200px) 100vw, 1200px" /></figure>



<p class="wp-block-paragraph">&#8211; Sample Texture 2D is your image or texture.<br>&#8211; BaseColor set to white. You can use it to colorize your texture if you want in the scene Inspector.</p>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.boarsheadstudio.com/scrolling-uv-shader-graph-scrolling-texture-material/">Scrolling UV Shader Graph (scrolling texture/material)</a> appeared first on <a href="https://www.boarsheadstudio.com">Boar&#039;s Head Studio</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.boarsheadstudio.com/scrolling-uv-shader-graph-scrolling-texture-material/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">503</post-id>	</item>
		<item>
		<title>Basic setup for a URP scene</title>
		<link>https://www.boarsheadstudio.com/basic-setup-for-a-urp-scene/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=basic-setup-for-a-urp-scene</link>
					<comments>https://www.boarsheadstudio.com/basic-setup-for-a-urp-scene/#respond</comments>
		
		<dc:creator><![CDATA[Doug]]></dc:creator>
		<pubDate>Mon, 28 Oct 2024 03:18:10 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[Global Volume]]></category>
		<category><![CDATA[URP]]></category>
		<guid isPermaLink="false">https://www.boarsheadstudio.com/?p=498</guid>

					<description><![CDATA[<p>If you&#8217;re scene doesn&#8217;t already have a Global Volume, right-click in the Hierarchy, select Volume, then select Global Volume. Select your Global Volume and look in the Inspector. If your Global Volume says &#8220;None (Volume Profile)&#8221; then you do not have a volume profile defined. Click the New button to create one. Now it should [&#8230;]</p>
<p>The post <a href="https://www.boarsheadstudio.com/basic-setup-for-a-urp-scene/">Basic setup for a URP scene</a> appeared first on <a href="https://www.boarsheadstudio.com">Boar&#039;s Head Studio</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">If you&#8217;re scene doesn&#8217;t already have a Global Volume, right-click in the Hierarchy, select Volume, then select Global Volume.</p>



<p class="wp-block-paragraph">Select your Global Volume and look in the Inspector.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="734" height="420" src="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image.png?resize=734%2C420&#038;ssl=1" alt="" class="wp-image-499" srcset="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image.png?w=734&amp;ssl=1 734w, https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image.png?resize=300%2C172&amp;ssl=1 300w" sizes="(max-width: 734px) 100vw, 734px" /></figure>



<p class="wp-block-paragraph">If your Global Volume says &#8220;None (Volume Profile)&#8221; then you do not have a volume profile defined. Click the New button to create one.</p>



<p class="wp-block-paragraph">Now it should say &#8220;Global Volume Profile (Volume Profile)&#8221;. Double-click on it to open the profile.</p>



<p class="wp-block-paragraph">Use the Add Override button to add Tonemapping and Bloom under Post-processing.</p>



<p class="wp-block-paragraph">Click the checkbox for Tonemapping &gt; Mode. Now set the dropdownbox to ACES.<br>Click the checkbox for Bloom &gt; Threshold and set it to 0.66.<br>Click the checkbox for Bloom &gt; Intensity and set it to 1.34.<br>Click the checkbox for Bloom &gt; Scatter and leave at the default of 0.7.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="733" height="453" src="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-1.png?resize=733%2C453&#038;ssl=1" alt="" class="wp-image-500" srcset="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-1.png?w=733&amp;ssl=1 733w, https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-1.png?resize=300%2C185&amp;ssl=1 300w" sizes="(max-width: 733px) 100vw, 733px" /></figure>



<p class="wp-block-paragraph">Now, select the MainCamera in your scene. Scroll down to Rendering. Check the box to turn on Post Processing. I also like to turn on Anti-aliasing.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="675" height="284" src="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-11.png?resize=675%2C284&#038;ssl=1" alt="" class="wp-image-516" srcset="https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-11.png?w=675&amp;ssl=1 675w, https://i0.wp.com/www.boarsheadstudio.com/wp-content/uploads/2024/10/image-11.png?resize=300%2C126&amp;ssl=1 300w" sizes="(max-width: 675px) 100vw, 675px" /></figure>



<p class="wp-block-paragraph">That&#8217;s all folks!</p>
<p>The post <a href="https://www.boarsheadstudio.com/basic-setup-for-a-urp-scene/">Basic setup for a URP scene</a> appeared first on <a href="https://www.boarsheadstudio.com">Boar&#039;s Head Studio</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.boarsheadstudio.com/basic-setup-for-a-urp-scene/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">498</post-id>	</item>
	</channel>
</rss>
