<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Holomoto-Sumire</author_name>
  <author_url>https://blog.hatena.ne.jp/Holomoto-Sumire/</author_url>
  <blog_title>夜風のMixedReality</blog_title>
  <blog_url>https://redhologerbera.hatenablog.com/</blog_url>
  <categories>
    <anon>Shader</anon>
  </categories>
  <description>本日はUnityShader学習枠です。 Unityでは基本的に現実世界同様手前にあるオブジェクトが奥にあるオブジェクトを塗りつぶすように描画されています。 しかし場合によっては奥にあるオブジェクトが一番手前に描画されてほしいというときもあります。 今回はいくつか最前面に描画されるシェーダーを紹介します。 〇最前面に描画されるシェーダー 今回は３つのキューブが重なっているように見えるこちらの画像の一番奥の白いキューブを例に紹介します。 〇描画順として最前面に描画されるシェーダー 今回紹介する方法はZtest Alwaysを使用する方法です。 ZTestとは、Z軸（奥行）＝デプスをほかのオブジェ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fredhologerbera.hatenablog.com%2Fentry%2F2023%2F02%2F17%2F232022&quot; title=&quot;Unityで常に最前面に描画されるシェーダーを書く ZTestについて - 夜風のMixedReality&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/H/Holomoto-Sumire/20230217/20230217211724.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-02-17 23:20:22</published>
  <title>Unityで常に最前面に描画されるシェーダーを書く ZTestについて</title>
  <type>rich</type>
  <url>https://redhologerbera.hatenablog.com/entry/2023/02/17/232022</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
