<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nn_hokuson</author_name>
  <author_url>https://blog.hatena.ne.jp/nn_hokuson/</author_url>
  <blog_title>おもちゃラボ</blog_title>
  <blog_url>https://nn-hokuson.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>シェーダ</anon>
  </categories>
  <description>プレイヤがゲームステージに配置されている障害物などの後ろ側に回り込むと、見えなくて操作しづらくなってしまいます。そこで、障害物によって隠れた部分は影だけ描いたりします。この記事では、Unityで隠れた部分を影で描画する方法を紹介します。今回の記事は次のようになります。 ステンシルバッファの原理 ステンシルバッファ用のシェーダを作る ブロックのシェーダを作る ユニティちゃんのシェーダを作る ステンシルバッファの原理 ステンシルバッファといっても、特殊なものではなく、一般的な画像と同じと考えて問題ありません。画像と違うのは、ステンシルバッファは画面に表示するためのものではなく、描画する際に使用する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnn-hokuson.hatenablog.com%2Fentry%2F2017%2F05%2F02%2F185320&quot; title=&quot;【Unityシェーダ入門】ステンシルバッファを使って隠れた部分を描く - おもちゃラボ&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/n/nn_hokuson/20170502/20170502184709.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-05-02 18:53:20</published>
  <title>【Unityシェーダ入門】ステンシルバッファを使って隠れた部分を描く</title>
  <type>rich</type>
  <url>https://nn-hokuson.hatenablog.com/entry/2017/05/02/185320</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
