<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>snoopopo</author_name>
  <author_url>https://blog.hatena.ne.jp/snoopopo/</author_url>
  <blog_title>ゲーム作るためのこと学ぶdevろぐ(’ー’)/ﾁｬﾗﾝ</blog_title>
  <blog_url>https://www.snoopopo.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>今回は、線をフラグメントシェーダで描画します。「スキャンライン」というらしい。 線を描く fixed4 frag(v2f i) : SV_Target { return step(0.3, i.uv.y) * step(i.uv.y, 0.4); } step step(閾値, x) xが閾値以上なら1, 閾値未満なら0 を返す。 上記の例は、UV座標のY座標が0.3～0.4 の位置にあるときに１を返すので、１＝白が表示されている。 sin波を使って複数線を描く fixed4 frag(v2f i) : SV_Target { return sin(i.uv.y * 50); } 複数線を書く…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.snoopopo.com%2Fentry%2F2020%2F09%2F04%2F094416&quot; title=&quot;【Unity-Shader】#07 直線を描く - ゲーム作るためのこと学ぶdevろぐ(’ー’)/ﾁｬﾗﾝ&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/s/snoopopo/20200904/20200904100915.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-09-04 09:44:16</published>
  <title>【Unity-Shader】#07 直線を描く</title>
  <type>rich</type>
  <url>https://www.snoopopo.com/entry/2020/09/04/094416</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
