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

光线跟踪GPU实现

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

代码说明:

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

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

发表评论

0 个回复

  • vs.lib是一组线性代数与可积/迪在C++数学库…
    vs.lib is a math library in C++ with a set of linear algebra and integrable / differentiable objects. vs.lib is a rapid-proto-typing tool which makes programming in numerical applications as easy as writing mathematical expressions.-vs.lib is a math library in C++ with a set of linear algebra and integrable/differentiable objects. vs.lib is a rapid-proto-typing tool which makes programming in numerical applications as easy as writing mathematical expressions.
    2022-02-24 19:39:22下载
    积分:1
  • 实现时间序列建模的marple,具体操作程序里有提示
    实现时间序列建模的marple算法,具体操作程序里有提示-Achieve time-series modeling marple algorithm, specific procedures have prompted
    2022-02-15 20:01:06下载
    积分:1
  • 产生MPSK(M=2,4,8,16)信号的matlab程序
    可产生2、4、8、16PSK数字调制基带IQ信号,其数字调制时的成形滤波器可任意选择升余弦、根升余弦和高斯。产生的MPSK信号通过波形回放进行了验证。
    2023-07-25 14:00:03下载
    积分:1
  • 在MPI上实现的矩阵相乘并行
    在MPI上实现的矩阵相乘并行计算的源程序。- The matrix realizes which on MPI multiplications the parallel computation source program.
    2022-11-09 11:10:04下载
    积分:1
  • 河内大厦实现步的运动,采用递归
    实现汉诺塔的移动步骤, 使用递归算法。-Tower of Hanoi realize the movement of steps, the use of recursive algorithm.
    2022-07-20 06:45:22下载
    积分:1
  • 用Monte
    用Monte-Carlo方法研究二维Ising模型的相变问题,求出临界温度T,比热C及磁化率χ-With Monte-Carlo method of two-dimensional Ising model of phase-change problem, find critical temperature T, specific heat C and susceptibility χ
    2022-03-01 07:06:13下载
    积分:1
  • 在分形几何里面,非常重要的一部分内容就是分形演化。这个模块提供的是用DLA模型模拟植物生长的。...
    在分形几何里面,非常重要的一部分内容就是分形演化算法。这个模块提供的是用DLA模型模拟植物生长的算法。-Fractal geometry in the inside, a very important part of the content is the evolutionary algorithm fractal. The module is provided by DLA model simulation of plant growth algorithms.
    2022-03-07 12:03:20下载
    积分:1
  • Discrete Mathematics in order to achieve the set of C++. C++, Discrete Mathemati...
    离散数学中求集合的C++实现。用C++实现离散数学中的求集合这一公式,原理及代码都很简单的问题。-Discrete Mathematics in order to achieve the set of C++. C++, Discrete Mathematics in order to achieve the collection of this formula, principles and code are very simple questions.
    2022-04-29 00:34:25下载
    积分:1
  • C#+OPengl实现漫游
    应用背景现在大多数全景都是使用html来完成,c/s网上很少 大多数都是C++,大家看看怎么样,下载下来的时候改下资源文件路径关键技术OPengl,C#,opengl.tao,3D,图像处理,算法
    2023-08-17 00:50:04下载
    积分:1
  • 包括高斯正公式,中央经线以及高斯反公式
    包括高斯正算公式,中央经线以及高斯反算公式-Including the Gaussian formula for positive operators, the central meridian, as well as anti-Gauss formula
    2022-07-14 00:44:08下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载