Home
last modified time | relevance | path

Searched refs:ray_dir (Results 1 – 25 of 235) sorted by relevance

12345678910

/dports/science/chrono/chrono-7.0.1/src/chrono_sensor/optix/shaders/
H A Dcylinder.cu27 const float3& ray_dir, in check_ends() argument
30 float t = (.5 - ray_orig.y) / ray_dir.y; in check_ends()
31 float3 p = ray_orig + ray_dir * t; in check_ends()
48 t = (-.5 - ray_orig.y) / ray_dir.y; in check_ends()
49 p = ray_orig + ray_dir * t; in check_ends()
68 const float3 ray_dir = optixGetObjectRayDirection(); in __intersection__cylinder_intersect() local
72 check_ends(ray_orig, ray_dir, ray_tmin, ray_tmax); in __intersection__cylinder_intersect()
74 float a = ray_dir.x * ray_dir.x + ray_dir.z * ray_dir.z; in __intersection__cylinder_intersect()
75 float b = 2 * (ray_dir.x * ray_orig.x + ray_dir.z * ray_orig.z); in __intersection__cylinder_intersect()
84 const float3 p_near = ray_orig + ray_dir * dist_near; in __intersection__cylinder_intersect()
[all …]
H A Dmaterial_shaders.cu112 float3 hit_point = ray_orig + ray_dir * ray_dist; in CameraShader()
113 float NdV = Dot(world_normal, -ray_dir); in CameraShader()
222 float VdH = Dot(-ray_dir, halfway); in CameraShader()
266 float3 next_dir = reflect(ray_dir, world_normal); in CameraShader()
270 float3 halfway = normalize(next_dir - ray_dir); in CameraShader()
273 float VdH = Dot(-ray_dir, halfway); // Same as LdH in CameraShader()
336 halfway = normalize(next_dir - ray_dir); in CameraShader()
339 VdH = Dot(-ray_dir, halfway); // Same as LdH in CameraShader()
426 float3 hit_point = ray_orig + ray_dir * ray_dist; in RadarShader()
451 float3 hit_point = ray_orig + ray_dir * ray_dist; in ShadowShader()
[all …]
H A Dmiss.cu34 float3 ray_dir = optixGetWorldRayDirection(); in __miss__shader() local
35 float theta = atan2f(ray_dir.x, ray_dir.y); in __miss__shader()
36 float phi = asinf(ray_dir.z); in __miss__shader()
44 float3 ray_dir = optixGetWorldRayDirection(); in __miss__shader() local
45 float mix = max(0.f, ray_dir.z); in __miss__shader()
H A Dsphere.cu29 const float3 ray_dir = optixGetObjectRayDirection(); in __intersection__sphere_intersect() local
34 float a = Dot(ray_dir, ray_dir); in __intersection__sphere_intersect()
35 float b = 2 * Dot(ray_dir, ray_orig); in __intersection__sphere_intersect()
47 float3 p = ray_orig + ray_dir * dist_near; in __intersection__sphere_intersect()
62 float3 p = ray_orig + ray_dir * dist_far; in __intersection__sphere_intersect()
/dports/graphics/embree/embree-3.13.2/kernels/geometry/
H A Dinstance_intersector.cpp62 const Vec3ff ray_dir = ray.dir; in intersect() local
68 ray.dir = ray_dir; in intersect()
89 const Vec3ff ray_dir = ray.dir; in occluded() local
95 ray.dir = ray_dir; in occluded()
151 const Vec3ff ray_dir = ray.dir; in intersect() local
157 ray.dir = ray_dir; in intersect()
184 ray.dir = ray_dir; in occluded()
248 ray.dir = ray_dir; in intersect()
277 ray.dir = ray_dir; in occluded()
307 ray.dir = ray_dir; in intersect()
[all …]
H A Ddisc_intersector.h64 const Vec3vf<M> ray_dir(ray.dir.x, ray.dir.y, ray.dir.z); in intersect()
65 const vfloat<M> rd2 = rcp(dot(ray_dir, ray_dir)); in intersect()
72 const vfloat<M> projC0 = dot(c0, ray_dir) * rd2; in intersect()
80 const Vec3vf<M> perp = c0 - projC0 * ray_dir; in intersect()
87 DiscIntersectorHitM<M> hit(zero, zero, projC0, -ray_dir); in intersect()
148 const Vec3vf<M> ray_dir(ray.dir.x[k], ray.dir.y[k], ray.dir.z[k]); in intersect()
149 const vfloat<M> rd2 = rcp(dot(ray_dir, ray_dir)); in intersect()
156 const vfloat<M> projC0 = dot(c0, ray_dir) * rd2; in intersect()
164 const Vec3vf<M> perp = c0 - projC0 * ray_dir; in intersect()
171 DiscIntersectorHitM<M> hit(zero, zero, projC0, -ray_dir); in intersect()
[all …]
H A Dsphere_intersector.h53 const Vec3vf<M> ray_dir(ray.dir.x, ray.dir.y, ray.dir.z); in intersect()
58 const vfloat<M> projC0 = dot(c0, ray_dir) * rd2; in intersect()
59 const Vec3vf<M> perp = c0 - projC0 * ray_dir; in intersect()
82 const Vec3vf<M> Ng_first = select(valid_front, td_front, td_back) * ray_dir - perp; in intersect()
95 const Vec3vf<M> Ng_second = td_back * ray_dir - perp; in intersect()
130 const Vec3vf<M> ray_dir(ray.dir.x[k], ray.dir.y[k], ray.dir.z[k]); in intersect()
131 const vfloat<M> rd2 = rcp(dot(ray_dir, ray_dir)); in intersect()
138 const vfloat<M> projC0 = dot(c0, ray_dir) * rd2; in intersect()
139 const Vec3vf<M> perp = c0 - projC0 * ray_dir; in intersect()
162 const Vec3vf<M> Ng_first = select(valid_front, td_front, td_back) * ray_dir - perp; in intersect()
[all …]
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/gpu/kinfu_large_scale/src/cuda/
H A Dray_caster.cu209 float3 ray_dir = normalized (ray_next - ray_start); in operator ()() local
212 ray_dir.x = (ray_dir.x == 0.f) ? 1e-15 : ray_dir.x; in operator ()()
213 ray_dir.y = (ray_dir.y == 0.f) ? 1e-15 : ray_dir.y; in operator ()()
214 ray_dir.z = (ray_dir.z == 0.f) ? 1e-15 : ray_dir.z; in operator ()()
217 float time_start_volume = getMinTime (volume_size, ray_start, ray_dir); in operator ()()
218 float time_exit_volume = getMaxTime (volume_size, ray_start, ray_dir); in operator ()()
226 int3 g = getVoxel (ray_start + ray_dir * time_curr); in operator ()()
240 int3 g = getVoxel ( ray_start + ray_dir * (time_curr + time_step) ); in operator ()()
255 float Ft = interpolateTrilineary (ray_start, ray_dir, time_curr, buffer); in operator ()()
262 float3 vetex_found = ray_start + ray_dir * Ts; in operator ()()
[all …]
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/gpu/kinfu/src/cuda/
H A Dray_caster.cu172 float3 ray_dir = normalized (ray_next - ray_start); in operator ()() local
175 ray_dir.x = (ray_dir.x == 0.f) ? 1e-15 : ray_dir.x; in operator ()()
176 ray_dir.y = (ray_dir.y == 0.f) ? 1e-15 : ray_dir.y; in operator ()()
177 ray_dir.z = (ray_dir.z == 0.f) ? 1e-15 : ray_dir.z; in operator ()()
180 float time_start_volume = getMinTime (volume_size, ray_start, ray_dir); in operator ()()
181 float time_exit_volume = getMaxTime (volume_size, ray_start, ray_dir); in operator ()()
189 int3 g = getVoxel (ray_start + ray_dir * time_curr); in operator ()()
203 int3 g = getVoxel ( ray_start + ray_dir * (time_curr + time_step) ); in operator ()()
218 float Ft = interpolateTrilineary (ray_start, ray_dir, time_curr); in operator ()()
225 float3 vetex_found = ray_start + ray_dir * Ts; in operator ()()
[all …]
/dports/graphics/blender/blender-2.91.0/intern/cycles/kernel/geom/
H A Dgeom_curve_intersect.h96 const float3 O = -P0, dO = ray_dir; in cylinder_intersect()
137 const float3 Pr = t0 * ray_dir; in cylinder_intersect()
145 const float3 Pr = t1 * ray_dir; in cylinder_intersect()
158 const float3 D = ray_dir; in half_plane_intersect()
188 const float3 Q = ray_dir * t; in curve_intersect_iterative()
189 const float3 dQdt = ray_dir; in curve_intersect_iterative()
267 const float dt = dot(center - ray_orig, ray_dir) / dot(ray_dir, ray_dir); in curve_intersect_recursive()
526 const float3 dx0 = make_float3(0, ray_dir.z, -ray_dir.y); in ribbon_ray_space()
527 const float3 dx1 = make_float3(-ray_dir.z, 0, ray_dir.x); in ribbon_ray_space()
530 ray_space[2] = ray_dir; in ribbon_ray_space()
[all …]
/dports/math/vtk9/VTK-9.1.0/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/rendering/raytracing/
H A DCamera.cxx116 vtkm::Float32 dot = vtkm::Dot(ray_dir, ray_dir); in operator ()()
119 ray_dir[0] = ray_dir[0] / sq_mag; in operator ()()
120 ray_dir[1] = ray_dir[1] / sq_mag; in operator ()()
121 ray_dir[2] = ray_dir[2] / sq_mag; in operator ()()
225 rayDirX = ray_dir[0]; in operator ()()
226 rayDirY = ray_dir[1]; in operator ()()
404 Precision dot = vtkm::Dot(ray_dir, ray_dir); in operator ()()
1068 Precision dot = vtkm::Dot(ray_dir, ray_dir); in CreateDebugRayImp()
1071 ray_dir[0] = ray_dir[0] / sq_mag; in CreateDebugRayImp()
1072 ray_dir[1] = ray_dir[1] / sq_mag; in CreateDebugRayImp()
[all …]
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/clang/test/CodeGenOpenCL/
H A Dbuiltins-amdgcn-raytracing.cl25 float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_dir,
29 ray_origin, ray_dir, ray_inv_dir, texture_descr);
35 float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_dir,
39 ray_origin, ray_dir, ray_inv_dir, texture_descr);
45 float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_dir,
49 ray_origin, ray_dir, ray_inv_dir, texture_descr);
55 float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_dir,
59 ray_origin, ray_dir, ray_inv_dir, texture_descr);
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/clang/test/CodeGenOpenCL/
H A Dbuiltins-amdgcn-raytracing.cl25 float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_dir,
29 ray_origin, ray_dir, ray_inv_dir, texture_descr);
35 float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_dir,
39 ray_origin, ray_dir, ray_inv_dir, texture_descr);
45 float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_dir,
49 ray_origin, ray_dir, ray_inv_dir, texture_descr);
55 float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_dir,
59 ray_origin, ray_dir, ray_inv_dir, texture_descr);
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/clang/test/CodeGenOpenCL/
H A Dbuiltins-amdgcn-raytracing.cl25 float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_dir,
29 ray_origin, ray_dir, ray_inv_dir, texture_descr);
35 float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_dir,
39 ray_origin, ray_dir, ray_inv_dir, texture_descr);
45 float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_dir,
49 ray_origin, ray_dir, ray_inv_dir, texture_descr);
55 float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_dir,
59 ray_origin, ray_dir, ray_inv_dir, texture_descr);
/dports/lang/rust/rustc-1.58.1-src/src/llvm-project/clang/test/CodeGenOpenCL/
H A Dbuiltins-amdgcn-raytracing.cl25 float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_dir,
29 ray_origin, ray_dir, ray_inv_dir, texture_descr);
35 float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_dir,
39 ray_origin, ray_dir, ray_inv_dir, texture_descr);
45 float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_dir,
49 ray_origin, ray_dir, ray_inv_dir, texture_descr);
55 float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_dir,
59 ray_origin, ray_dir, ray_inv_dir, texture_descr);
/dports/devel/llvm13/llvm-project-13.0.1.src/clang/test/CodeGenOpenCL/
H A Dbuiltins-amdgcn-raytracing.cl25 float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_dir,
29 ray_origin, ray_dir, ray_inv_dir, texture_descr);
35 float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_dir,
39 ray_origin, ray_dir, ray_inv_dir, texture_descr);
45 float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_dir,
49 ray_origin, ray_dir, ray_inv_dir, texture_descr);
55 float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_dir,
59 ray_origin, ray_dir, ray_inv_dir, texture_descr);
/dports/lang/clang-mesa/clang-13.0.1.src/test/CodeGenOpenCL/
H A Dbuiltins-amdgcn-raytracing.cl25 float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_dir,
29 ray_origin, ray_dir, ray_inv_dir, texture_descr);
35 float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_dir,
39 ray_origin, ray_dir, ray_inv_dir, texture_descr);
45 float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_dir,
49 ray_origin, ray_dir, ray_inv_dir, texture_descr);
55 float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_dir,
59 ray_origin, ray_dir, ray_inv_dir, texture_descr);
/dports/math/vtk8/VTK-8.2.0/ThirdParty/vtkm/vtk-m/vtkm/rendering/raytracing/
H A DCamera.cxx126 vtkm::Float32 dot = vtkm::Dot(ray_dir, ray_dir); in operator ()()
129 ray_dir[0] = ray_dir[0] / sq_mag; in operator ()()
130 ray_dir[1] = ray_dir[1] / sq_mag; in operator ()()
131 ray_dir[2] = ray_dir[2] / sq_mag; in operator ()()
235 rayDirX = ray_dir[0]; in operator ()()
236 rayDirY = ray_dir[1]; in operator ()()
414 Precision dot = vtkm::Dot(ray_dir, ray_dir); in operator ()()
1065 Precision dot = vtkm::Dot(ray_dir, ray_dir); in CreateDebugRayImp()
1068 ray_dir[0] = ray_dir[0] / sq_mag; in CreateDebugRayImp()
1069 ray_dir[1] = ray_dir[1] / sq_mag; in CreateDebugRayImp()
[all …]
/dports/graphics/blender/blender-2.91.0/intern/cycles/util/
H A Dutil_math_intersect.h89 float3 ray_dir, in ray_triangle_intersect() argument
108 const float3 dir(ray_dir); in ray_triangle_intersect()
112 const float3 dir = ray_dir; in ray_triangle_intersect()
137 const ssef dirX(ray_dir.x); in ray_triangle_intersect()
138 const ssef dirY(ray_dir.y); in ray_triangle_intersect()
139 const ssef dirZ(ray_dir.z); in ray_triangle_intersect()
143 const float U = dot(cross(v2 + v0, e0), ray_dir); in ray_triangle_intersect()
144 const float V = dot(cross(v0 + v1, e1), ray_dir); in ray_triangle_intersect()
145 const float W = dot(cross(v1 + v2, e2), ray_dir); in ray_triangle_intersect()
/dports/graphics/blender/blender-2.91.0/source/blender/draw/engines/overlay/shaders/
H A Doutline_prepass_frag.glsl9 vec3 ray_plane_intersection(vec3 ray_ori, vec3 ray_dir, vec4 plane)
11 float d = dot(plane.xyz, ray_dir);
15 return ray_ori + ray_dir * lambda;
35 vec3 ray_dir = (is_persp) ? (ViewMatrixInverse[3].xyz - pos) : ViewMatrixInverse[2].xyz;
36 vec3 isect = ray_plane_intersection(ray_ori, ray_dir, gpDepthPlane);
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/llvm/test/CodeGen/AMDGPU/
H A Dllvm.amdgcn.intersect_ray.ll3 …ray.i32.v4f32(uint node_ptr, float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_d…
4 ….ray.i32.v4f16(uint node_ptr, float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_di…
5 …ay.i64.v4f32(ulong node_ptr, float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_d…
6 …ray.i64.v4f16(ulong node_ptr, float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_di…
24 %ray_dir = insertelement <4 x float> %ray_dir1, float %ray_dir_z, i32 2
37 …6(i32 %node_ptr, float %ray_extent, <4 x float> %ray_origin, <4 x half> %ray_dir, <4 x half> %ray_…
54 %ray_dir = insertelement <4 x float> %ray_dir1, float %ray_dir_z, i32 2
88 %ray_dir = insertelement <4 x float> %ray_dir1, float 5.0, i32 2
111 %ray_dir = insertelement <4 x half> %ray_dir1, half 5.0, i32 2
132 %ray_dir = insertelement <4 x float> %ray_dir1, float 5.0, i32 2
[all …]
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/llvm/test/CodeGen/AMDGPU/
H A Dllvm.amdgcn.intersect_ray.ll5 …ray.i32.v4f32(uint node_ptr, float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_d…
6 ….ray.i32.v4f16(uint node_ptr, float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_di…
7 …ay.i64.v4f32(ulong node_ptr, float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_d…
8 …ray.i64.v4f16(ulong node_ptr, float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_di…
27 %ray_dir = insertelement <4 x float> %ray_dir1, float %ray_dir_z, i32 2
40 …6(i32 %node_ptr, float %ray_extent, <4 x float> %ray_origin, <4 x half> %ray_dir, <4 x half> %ray_…
57 %ray_dir = insertelement <4 x float> %ray_dir1, float %ray_dir_z, i32 2
91 %ray_dir = insertelement <4 x float> %ray_dir1, float 5.0, i32 2
114 %ray_dir = insertelement <4 x half> %ray_dir1, half 5.0, i32 2
135 %ray_dir = insertelement <4 x float> %ray_dir1, float 5.0, i32 2
[all …]
/dports/graphics/llvm-mesa/llvm-13.0.1.src/test/CodeGen/AMDGPU/
H A Dllvm.amdgcn.intersect_ray.ll5 …ray.i32.v4f32(uint node_ptr, float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_d…
6 ….ray.i32.v4f16(uint node_ptr, float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_di…
7 …ay.i64.v4f32(ulong node_ptr, float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_d…
8 …ray.i64.v4f16(ulong node_ptr, float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_di…
27 %ray_dir = insertelement <4 x float> %ray_dir1, float %ray_dir_z, i32 2
40 …6(i32 %node_ptr, float %ray_extent, <4 x float> %ray_origin, <4 x half> %ray_dir, <4 x half> %ray_…
57 %ray_dir = insertelement <4 x float> %ray_dir1, float %ray_dir_z, i32 2
91 %ray_dir = insertelement <4 x float> %ray_dir1, float 5.0, i32 2
114 %ray_dir = insertelement <4 x half> %ray_dir1, half 5.0, i32 2
135 %ray_dir = insertelement <4 x float> %ray_dir1, float 5.0, i32 2
[all …]
/dports/devel/llvm12/llvm-project-12.0.1.src/llvm/test/CodeGen/AMDGPU/
H A Dllvm.amdgcn.intersect_ray.ll3 …ray.i32.v4f32(uint node_ptr, float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_d…
4 ….ray.i32.v4f16(uint node_ptr, float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_di…
5 …ay.i64.v4f32(ulong node_ptr, float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_d…
6 …ray.i64.v4f16(ulong node_ptr, float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_di…
24 %ray_dir = insertelement <4 x float> %ray_dir1, float %ray_dir_z, i32 2
37 …6(i32 %node_ptr, float %ray_extent, <4 x float> %ray_origin, <4 x half> %ray_dir, <4 x half> %ray_…
54 %ray_dir = insertelement <4 x float> %ray_dir1, float %ray_dir_z, i32 2
88 %ray_dir = insertelement <4 x float> %ray_dir1, float 5.0, i32 2
111 %ray_dir = insertelement <4 x half> %ray_dir1, half 5.0, i32 2
132 %ray_dir = insertelement <4 x float> %ray_dir1, float 5.0, i32 2
[all …]
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/llvm/test/CodeGen/AMDGPU/
H A Dllvm.amdgcn.intersect_ray.ll5 …ray.i32.v4f32(uint node_ptr, float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_d…
6 ….ray.i32.v4f16(uint node_ptr, float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_di…
7 …ay.i64.v4f32(ulong node_ptr, float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_d…
8 …ray.i64.v4f16(ulong node_ptr, float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_di…
27 %ray_dir = insertelement <4 x float> %ray_dir1, float %ray_dir_z, i32 2
40 …6(i32 %node_ptr, float %ray_extent, <4 x float> %ray_origin, <4 x half> %ray_dir, <4 x half> %ray_…
57 %ray_dir = insertelement <4 x float> %ray_dir1, float %ray_dir_z, i32 2
91 %ray_dir = insertelement <4 x float> %ray_dir1, float 5.0, i32 2
114 %ray_dir = insertelement <4 x half> %ray_dir1, half 5.0, i32 2
135 %ray_dir = insertelement <4 x float> %ray_dir1, float 5.0, i32 2
[all …]

12345678910