<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gaziya</author_name>
  <author_url>https://blog.hatena.ne.jp/gaziya/</author_url>
  <blog_title>テラByteの時代にキロByte</blog_title>
  <blog_url>https://gaz.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>raymarchingでmod()を使わないで大量モデル描写する。TDFのデモで使った手法だけど、誰もとってくれないので、自分で解説する事にしました。 一個一個をバウンディングして範囲に入っていたら、z値を比較し、手前なら描写という手法。GPUによるがGeForce GTX 960で,500個くらいなら問題無く動いてます。 説明はソースの方に書いておいたので、そちらを見てください。 この手法のポイントは if(length(cross(rd,q-ro))&lt;1.0) これです。length(cross(v,p-a)) は、a点を通る単位ベクトルvの直線の距離関数になります。 ベクトルがrdで通過…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgaz.hateblo.jp%2Fentry%2F2019%2F05%2F12%2F210143&quot; title=&quot;--shader(GLSL)の小技 10-- raymarchingでmod()を使わないで大量モデル描写 - テラByteの時代にキロByte&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>2019-05-12 21:01:43</published>
  <title>--shader(GLSL)の小技 10-- raymarchingでmod()を使わないで大量モデル描写</title>
  <type>rich</type>
  <url>https://gaz.hateblo.jp/entry/2019/05/12/210143</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
