<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hacchi_man</author_name>
  <author_url>https://blog.hatena.ne.jp/hacchi_man/</author_url>
  <blog_title>うにてぃブログ</blog_title>
  <blog_url>https://hacchi-man.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>Shader</anon>
  </categories>
  <description>Directional Light を複数置いて Culling Mask で制御するのが面倒な時などに Unlit Shader でも 光の向きを指定したい場合があります。 法線との内積の処理で指定したXYZを利用しているだけで特に特殊な処理はしていません Shader Shader &quot;Custom/Unlit/DirectionLight&quot; { Properties { _MainTex (&quot;Texture&quot;, 2D) = &quot;white&quot; {} _LightX (&quot;LightDirectionX&quot;, float) = 0.0 _LightY (&quot;LightDirectionY&quot;, floa…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhacchi-man.hatenablog.com%2Fentry%2F2020%2F01%2F19%2F220000&quot; title=&quot;【Unity】Unlit Shader でも 影出したい!  - うにてぃブログ&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/hacchi_man/20200115/20200115225637.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-01-19 22:00:00</published>
  <title>【Unity】Unlit Shader でも 影出したい! </title>
  <type>rich</type>
  <url>https://hacchi-man.hatenablog.com/entry/2020/01/19/220000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
