<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yu00</author_name>
  <author_url>https://blog.hatena.ne.jp/yu00/</author_url>
  <blog_title>yu00’s blog</blog_title>
  <blog_url>https://yu00.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>はじめに 画像の移動・回転・スケールについてなぜそうなっているかを 説明します。 UV座標系 Create &gt; Shader &gt; Unit Shader で説明します。 作成されたシェーダにはv2fが定義されています。 struct v2f { float2 uv : TEXCOORD0; ... }; uvの座標系は以下のようになっています。 このuvに以下のようなテクスチャを貼ることを考えます。 この時のコードは以下のようになります。 fixed4 frag (v2f i) : SV_Target { fixed4 col = tex2D(_MainTex, i.uv); return c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyu00.hatenablog.com%2Fentry%2F2024%2F09%2F27%2F221447&quot; title=&quot;Unity Shader UV座標まとめ - yu00’s blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yu00/20240927/20240927215052.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-09-27 22:14:47</published>
  <title>Unity Shader UV座標まとめ</title>
  <type>rich</type>
  <url>https://yu00.hatenablog.com/entry/2024/09/27/221447</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
