More Related Content
PDF
PDF
中級グラフィックス入門~シャドウマッピング総まとめ~ PPTX
PPTX
レイトレ合宿2!! 3分間アピールプレゼン―Pocol PDF
뭣이 중헌디? 성능 프로파일링도 모름서 - 유니티 성능 프로파일링 가이드 (IGC16) PDF
PDF
Application parallelisation Android - Klaas Vangend PDF
CEDEC 2015 Cocos2d-x と社内基盤の付き合い方 〜アップストリームファーストを目指して〜 Viewers also liked
PPTX
PDF
Tabc vol3 テクニカルアーティストを始めるにあたって PPTX
PPTX
ACEScg: A Common Color Encoding for Visual Effects Applications - DigiPro 2015 PPTX
Weighted Blended Order Independent Transparency PPTX
声の実体化体験 - HTML5でつくるデジタルインスタレーション - PDF
CEDEC 2015 IoT向け汎用protocol MQTTのリアルタイムゲーム通信利用と実装、そして未来へ… PPTX
Unity & VR (Unity Roadshow 2016) PDF
CEDEC 2016 Metal と Vulkan を用いた水彩画レンダリング技法の紹介 PDF
PDF
PPTX
Shadow gunのサンプルから学べるモバイル最適化 PPTX
Filmic Tonemapping for Real-time Rendering - Siggraph 2010 Color Course PPTX
Optimizing mobile applications - Ian Dundore, Mark Harkness PDF
Penner pre-integrated skin rendering (siggraph 2011 advances in real-time r... PDF
PDF
AI in Games- Steering, Wander and Flocking behavior PPTX
ACES 1.0 OpenColorIO config - Siggraph 2015 PDF
Mobile crossplatformchallenges siggraph PPTX
Similar to レイトレ合宿3!!! 5分間アピールプレゼン―Pocol
PDF
PDF
PDF
PDF
OpenCVとARCoreで作るスタンプAR in 宮崎 PDF
CEDEC2020 プロシージャルゲームコンテンツ制作ブートキャンプ 2020 Part 2 モバイルゲーム 実践 PPTX
リアルタイム光学エフェクトの深淵へ ~ 究極表現への道と位置 ~|CEDEC2024 PDF
PPTX
OpenCVでつくろうARスタンプアプリ in 熊本 レイトレ合宿3!!! 5分間アピールプレゼン―Pocol
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
Color4 Texture2D::BilinearSample(const TextureSampler&sampler, const Vector2& texcoord) const
{
// 浮動小数点形式で画像サイズにスケーリング.
auto fx = texcoord.x * m_Width;
auto fy = texcoord.y * m_Height;
// 小数点以下を切り捨て.
auto x0 = static_cast<s32>( floor( fx ) );
auto y0 = static_cast<s32>( floor( fy ) );
auto x1 = x0 + 1;
auto y1 = y0 + 1;
return ( x1 - fx ) * ( ( y1 - fy ) * GetPixel( x0, y0, sampler ) + ( fy - y0 ) * GetPixel( x0, y1, sampler ) )
+ ( fx - x0 ) * ( ( y1 - fy ) * GetPixel( x1, y0, sampler ) + ( fy - y0 ) * GetPixel( x1, y1, sampler ) );
}
実装コード
- 22.
- 23.
- 24.
- 25.