登录
首页 » 算法 » 光线跟踪GPU实现

光线跟踪GPU实现

于 2022-01-25 发布 文件大小:341.04 kB
0 167
下载积分: 2 下载次数: 2

代码说明:

首先确定眼睛的位置和视线方向。然后确定从眼睛出发通过每个象素中心的光线方程。通过该光线求光线与场景中物体的最近交点。 若有交点,首先产生阴影测试光线,它是连接交点与光源的光线,然后计算该交点与光源间是否有阻挡物,如果没有则计算该点的Phong模型分量,若有阻挡物则不计算。若交点处的场景为反射表面,则产生反射光线,将此光线继续与场景求交。若交点处的场景具有透明性,则产生透射光线,将此光线继续与场景求交。 若无交点,则返回默认值。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • HOOK API please tell me why
    this is a createfile hook i love you please tell me why come on baby give me your love
    2023-07-03 04:05:03下载
    积分:1
  • openGI (几何图像)
    OpenGI 是一个独立于平台的 C 库的三角网格模型参数化和创建从这种参数化的几何图像。 功能简单易学 OpenGL 类似语法和编程 2-流形上的任意亏格与可变数量 boundariesvarious 参数化算法,如平均值 paradigmsworks 拉伸最小化,为多图表 patchi ficationshardware 的原始 GIM algorithmsupport 加速几何图像 creationsampling 各种通用 attributestight 集成使用 OpenGL 的轻松和高效的数据共享
    2022-04-17 10:49:59下载
    积分:1
  • applicable to beginners learning
    适用于初学者学习-applicable to beginners learning
    2022-11-02 00:35:03下载
    积分:1
  • OFELI is an object oriented library of C++ classes for development of finite ele...
    OFELI is an object oriented library of C++ classes for development of finite element codes. Its main features are : * Various storage schemes of matrices (dense, sparse, skyline). * Direct methods of solution of linear systems of equations as well as various combinations of iterative solvers and preconditioners. * Shape functions of most "popular" finite elements * Element arrays of most popular problems (Heat Transfer, Fluid Flow, Solid Mechanics, Electromagnetics, ...).-OFELI is an object oriented library of C++ classes for development of finite element codes. Its main features are :* Various storage schemes of matrices (dense, sparse, skyline).* Direct methods of solution of linear systems of equations as well as various combinations of iterative solvers and preconditioners.* Shape functions of most "popular" finite elements* Element arrays of most popular problems (Heat Transfer, Fluid Flow, Solid Mechanics, Electromagnetics, ...).
    2022-02-27 06:26:31下载
    积分:1
  • achieve a reversal of a linked list, in the entire process completed within a Li...
    实现了一个链表的逆转,全部过程在一个链表内完成!-achieve a reversal of a linked list, in the entire process completed within a List!
    2022-03-11 22:22:36下载
    积分:1
  • 给出计常微分方程(组)的各种的使用示例。
    给出计算常微分方程(组)的各种算法的使用示例。-Given the calculation of ordinary differential equations (group) the use of various algorithms sample.
    2022-10-03 12:05:03下载
    积分:1
  • 二分
    要找到解决办法 f (x) = 0 给定连续函数 * 区间 [a,b],在 f(a) 和 f(b) 有上 f * 符号相反: * * 输入: 终结点 a、 b ;容忍 TOL ; * 迭代 N0 最大次数。 * * 输出: 近似解决方案 p 或 * 一条消息,该算法将失败。 */
    2022-03-19 16:48:23下载
    积分:1
  • 考虑未来竞争的空间交互选址问题求解
    考虑未来竞争的空间交互选址问题求解-consider the future competitiveness of the space problem solving interactive site
    2022-01-25 23:50:58下载
    积分:1
  • 数字图像中值处理
    均值滤波、中值滤波的计算机实现方法;学习VC++ 6。0 的编程方法;验证均值滤波、中值滤波处理理论;观察均值滤波、中值滤波处理的结果。 实验的软、硬件平台:  
    2022-01-24 13:37:58下载
    积分:1
  • fortran version of singular value decomposition subroutine, suitable for meteoro...
    fortran版奇异值分解子程序,适合气象统计计算。-fortran version of singular value decomposition subroutine, suitable for meteorological statistical computing.
    2022-06-27 17:25:01下载
    积分:1
  • 696518资源总数
  • 106253会员总数
  • 14今日下载