<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>olj611</author_name>
  <author_url>https://blog.hatena.ne.jp/olj611/</author_url>
  <blog_title>機械学習基礎理論独習</blog_title>
  <blog_url>https://olj611.hatenablog.com/</blog_url>
  <categories>
    <anon>コンピュータグラフィックス</anon>
  </categories>
  <description>お手軽でよい効果をもたらす手法 環境光は定数にすることが多いですが、半球ライトのアルゴリズムを用いると お手軽で少しだけリアルな効果が得られます。 PlayStation3などの今よりGPUの計算速度が劣る環境で採用されていたそうです。 英語では hemisphere light と言います。 アルゴリズム 天空色 、地面色 、地面の法線ベクトル 、モデルの法線ベクトル から環境光を計算します。 の内積を求めて、 ～ に正規化します。その値で を線形補間したのが求める環境光です。 参考文献 HLSLシェーダの魔導書 p143-p150</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Folj611.hatenablog.com%2Fentry%2F2024%2F05%2F19%2F072902&quot; title=&quot;半球ライト - 機械学習基礎理論独習&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-05-19 07:29:02</published>
  <title>半球ライト</title>
  <type>rich</type>
  <url>https://olj611.hatenablog.com/entry/2024/05/19/072902</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
