<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yunagi_n</author_name>
  <author_url>https://blog.hatena.ne.jp/yunagi_n/</author_url>
  <blog_title>なつねこメモ</blog_title>
  <blog_url>https://tech.natsuneko.blog/</blog_url>
  <categories>
    <anon>HLSL</anon>
    <anon>Unity</anon>
  </categories>
  <description>暫く前に、Texture2DArray を作成する記事を書いたのですが、その続きです。 Texture2DArray を元に、テクスチャを切り替えられるシェーダーを作ってみます。 といっても実装は簡単。 まずは Texture2DArray を宣言しておきます。 あとは、テクスチャを切り替える為の入力も宣言しておきます。 Shader &quot;Mochizuki/Shader/001&quot; { Properties { _Textures (&quot;Texture Array&quot;, 2DArray) = &quot;white&quot; {} _TextureNo (&quot;Texture No&quot;, Range(0, 1)) = 0 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.natsuneko.blog%2Fentry%2F2020%2F06%2F03%2Ftexture-shader-switcher&quot; title=&quot;テクスチャを切り替えられるシェーダーを作りたい - なつねこメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-06-02 15:00:00</published>
  <title>テクスチャを切り替えられるシェーダーを作りたい</title>
  <type>rich</type>
  <url>https://tech.natsuneko.blog/entry/2020/06/03/texture-shader-switcher</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
